commit 6232f19624ab2f111f131be8dbfea79a54604589
parent c7509a6b5075a7e1f3b12a11a7d569068769b232
Author: Alif Radhitya <alifradityawardana@gmail.com>
Date: Mon, 11 Jul 2022 15:17:13 +0700
dwm vertical horizontal with one button like i3
Diffstat:
2 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/horizontal-vertical-i3/dwm-vertical-horizontal-i3like.diff b/dwm.suckless.org/patches/horizontal-vertical-i3/dwm-vertical-horizontal-i3like.diff
@@ -0,0 +1,25 @@
+diff --git a/config.def.h b/config.def.h
+index a2ac963..cd0b16b 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -68,7 +68,6 @@ static Key keys[] = {
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY, XK_i, incnmaster, {.i = +1 } },
+- { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_h, setmfact, {.f = -0.05} },
+ { MODKEY, XK_l, setmfact, {.f = +0.05} },
+ { MODKEY, XK_Return, zoom, {0} },
+diff --git a/dwm.c b/dwm.c
+index 5646a5c..123f5e0 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -973,7 +973,7 @@ grabkeys(void)
+ void
+ incnmaster(const Arg *arg)
+ {
+- selmon->nmaster = MAX(selmon->nmaster + arg->i, 0);
++ selmon->nmaster = !selmon->nmaster;
+ arrange(selmon);
+ }
+
diff --git a/dwm.suckless.org/patches/horizontal-vertical-i3/index.md b/dwm.suckless.org/patches/horizontal-vertical-i3/index.md
@@ -0,0 +1,16 @@
+horizontal vertical i3
+======================
+
+Description
+-----------
+
+This patch allows you to make a window run vertically or horizontally with one button like i3 window manager ($mod+e)
+Without this patch, you must press i or d to make it vertical or horizontal. Of course it has value, which is why I hate it.
+
+Download
+--------
+* [dwm-vertical-horizontal-i3like.diff]
+
+Author
+-----
+* Alif Radhitya (al1r4d) - < al1r4d at riseup net >