From a70fd955bacbc6465d1ed7d523477f0cd4725ab7 Mon Sep 17 00:00:00 2001
From: Malfurious <m@lfurio.us>
Date: Thu, 27 Jan 2022 03:46:21 -0500
Subject: 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.
---
 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 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 } },
-- 
cgit v1.2.3