summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-01-27 03:46:21 -0500
committerMalfurious <m@lfurio.us>2023-06-03 21:58:14 -0400
commita70fd955bacbc6465d1ed7d523477f0cd4725ab7 (patch)
tree0988fc544fc1605a2d09e8a25ea51121d0f87228 /config.def.h
parentb23a9c430b4c8af2b71a2bd6c7cd74f550ef42e6 (diff)
downloaddwm-a70fd955bacbc6465d1ed7d523477f0cd4725ab7.tar.gz
dwm-a70fd955bacbc6465d1ed7d523477f0cd4725ab7.zip
patch: columns
This patch adds an extra layout to dwm called col in which the windows in the master area are arranged in colums of equal size. The number of columns is always nmaster + 1, and the last column is a stack of leftover windows just like the normal tile layout. It effectively acts like the default tiling mode, except provides for vertical instead of horizontal master windows.
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 37b38d5..477c1d0 100644
--- a/config.def.h
+++ b/config.def.h
@@ -49,6 +49,7 @@ static const Layout layouts[] = {
{ "[M]", monocle },
{ "|M|", centeredmaster },
{ ">M>", centeredfloatingmaster },
+ { "|||", col },
};
/* key definitions */
@@ -93,6 +94,7 @@ static const Key keys[] = {
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_u, setlayout, {.v = &layouts[3]} },
{ MODKEY, XK_o, setlayout, {.v = &layouts[4]} },
+ { MODKEY, XK_c, setlayout, {.v = &layouts[5]} },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },