From a44e4648241d6caad189a64d9b930879bc1ff34a Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 19 Mar 2023 17:26:46 +0100 Subject: [PATCH] Configure Three Column Layout --- config.h | 4 +++- dwm.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 6752699..de31e46 100644 --- a/config.h +++ b/config.h @@ -75,10 +75,12 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ { "[]=", tile }, /* first entry is default */ - { "|||", col }, + { "=|=", tcl}, /* three columns layout */ + { "|||", col }, /* column layout */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; +static const Layout* monocleLayout = &layouts[4]; /* key definitions */ #define MODKEY Mod4Mask diff --git a/dwm.c b/dwm.c index d499737..5b2c536 100644 --- a/dwm.c +++ b/dwm.c @@ -1829,7 +1829,7 @@ fullscreen(const Arg *arg) { if (selmon->showbar) { for(last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++); - setlayout(&((Arg) { .v = &layouts[3] })); + setlayout(&((Arg) { .v = &monocleLayout })); } else { setlayout(&((Arg) { .v = last_layout })); }