From a89081aab07e0f1fe82c93f0ea1e1bc86b380664 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 27 Jan 2022 03:34:55 -0500 Subject: 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 :-) --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 477c1d0..a3b6c1a 100644 --- a/config.def.h +++ b/config.def.h @@ -50,6 +50,7 @@ static const Layout layouts[] = { { "|M|", centeredmaster }, { ">M>", centeredfloatingmaster }, { "|||", col }, + { "HHH", grid }, }; /* key definitions */ @@ -95,6 +96,7 @@ static const Key keys[] = { { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, { MODKEY, XK_c, 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 } }, -- cgit v1.2.3