diff options
| author | Malfurious <m@lfurio.us> | 2024-03-02 11:05:58 -0500 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-01-18 00:18:46 -0500 |
| commit | 5e18bb5da386cd244f2f27e16b5e77ba5f66bfd9 (patch) | |
| tree | 2e6d99d923234e853aabce0e8e206658402c64a5 /config.def.h | |
| parent | ae8a9fe600ac29c04e72e42a16052c67e203cb26 (diff) | |
| download | dwm-5e18bb5da386cd244f2f27e16b5e77ba5f66bfd9.tar.gz dwm-5e18bb5da386cd244f2f27e16b5e77ba5f66bfd9.zip | |
patch: centeredmaster
centeredmaster centers the nmaster area on screen, using mfact * monitor
width & height, with the stacked windows distributed to the left and
right. It can be selected with [Alt]+[u].
With one and two clients in master respectively this results in:
+------------------------------+ +------------------------------+
|+--------++--------++--------+| |+--------++--------++--------+|
|| || || || || || || ||
|| || || || || || M1 || ||
|| || || || || || || ||
|| S2 || M || S1 || || |+--------+| ||
|| || || || || |+--------+| ||
|| || || || || || || ||
|| || || || || || M2 || ||
|| || || || || || || ||
|+--------++--------++--------+| |+--------++--------++--------+|
+------------------------------+ +------------------------------+
This layout can be useful on large screens, where monocle or htile might
be either too large or forcing the user to type in a corner of the
screen. It allows for instance to center the editor while being able to
keep an eye on background processes (logs, tests, ...).
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index abd464a..65b674f 100644 --- a/config.def.h +++ b/config.def.h @@ -45,6 +45,7 @@ static const Layout layouts[] = { { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "|M|", centeredmaster }, }; /* key definitions */ @@ -92,6 +93,7 @@ static const Key keys[] = { { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, |
