From 3707e0115acce4bb95f618203f3ac533adf8ee2b Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Wed, 22 Apr 2020 08:25:43 -0500 Subject: layouts: tile and floating Behavior's still a little wonky but positioning is there. --- config.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 633d035..28bcf26 100644 --- a/config.h +++ b/config.h @@ -1,14 +1,21 @@ /* appearance */ static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; +/* layout(s) */ +static const Layout layouts[] = { + /* symbol arrange function */ + { "[]=", tile }, + { "><>", NULL }, /* no layout function means floating behavior */ +}; + /* monitors */ static const MonitorRule monrules[] = { - /* name scale */ - { "X11-1", 1 }, - { "eDP-1", 2 }, - { "HDMI-A-1", 1 }, - /* defaults */ - { NULL, 1 }, + /* name mfact nmaster scale layout */ + { "X11-1", 0.5, 1, 1, &layouts[0] }, + { "eDP-1", 0.5, 1, 2, &layouts[0] }, + { "HDMI-A-1", 0.5, 1, 1, &layouts[0] }, + /* defaults (required) */ + { NULL, 0.5, 1, 1, &layouts[0] }, }; /* keyboard */ -- cgit v1.2.3