summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-01-27 03:34:55 -0500
committerMatt Hunter <m@lfurio.us>2026-01-18 00:18:46 -0500
commit945ce59ef54857edce8c536754d0325ae7651de3 (patch)
tree333bb041371cb0521be15e13bb2aaaac067305b8 /config.def.h
parent23157e30211c74472f96c6aad451be0039ee29dc (diff)
downloaddwm-945ce59ef54857edce8c536754d0325ae7651de3.tar.gz
dwm-945ce59ef54857edce8c536754d0325ae7651de3.zip
patch: gridmode
This patch adds an extra layout mode to dwm called grid in which the windows are arranged in a grid of equal sizes. It comes in very handy, especially with tools that operate on multiple windows at once; e.g. Cluster SSH. The patch would look a lot uglier without Jukka Salmi's constant help. Thanks Jukka :-)
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 0e512bf..6046a25 100644
--- a/config.def.h
+++ b/config.def.h
@@ -48,6 +48,7 @@ static const Layout layouts[] = {
{ "|M|", centeredmaster },
{ "||=", col },
{ "=[]", elit },
+ { "HHH", grid },
};
/* key definitions */
@@ -98,6 +99,7 @@ static const Key keys[] = {
{ MODKEY, XK_u, setlayout, {.v = &layouts[3]} },
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} },
{ MODKEY, XK_e, setlayout, {.v = &layouts[5]} },
+ { MODKEY, XK_g, setlayout, {.v = &layouts[6]} },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },