[wiki] [sites] dwm vertical horizontal with one button like i3 || Alif Radhitya
commit 6232f19624ab2f111f131be8dbfea79a54604589
Author: Alif Radhitya <alifradityawardana_AT_gmail.com>
Date: Mon Jul 11 15:17:13 2022 +0700
dwm vertical horizontal with one button like i3
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
new file mode 100644
index 00000000..245d0184
--- /dev/null
+++ b/dwm.suckless.org/patches/horizontal-vertical-i3/dwm-vertical-horizontal-i3like.diff
_AT_@ -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
+_AT_@ -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
+_AT_@ -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
new file mode 100644
index 00000000..7f6f4f58
--- /dev/null
+++ b/dwm.suckless.org/patches/horizontal-vertical-i3/index.md
_AT_@ -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 >
Received on Mon Jul 11 2022 - 10:17:19 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 11 2022 - 10:24:41 CEST