[wiki] [sites] [dwm][patch][leftfload] Add patch || codesoap
commit de8a25a1126b381870dcef51abf7ccc6990a07bd
Author: codesoap <codesoap_AT_mailbox.org>
Date: Sat Nov 21 19:36:26 2020 +0100
[dwm][patch][leftfload] Add patch
diff --git a/dwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff b/dwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff
new file mode 100644
index 00000000..741cb809
--- /dev/null
+++ b/dwm.suckless.org/patches/leftstack/dwm-leftstack-6.2.diff
_AT_@ -0,0 +1,44 @@
+From 4b24cf1c15e59d609f0f755d9808ba240ea9c0f2 Mon Sep 17 00:00:00 2001
+From: codesoap <codesoap_AT_mailbox.org>
+Date: Sat, 21 Nov 2020 19:01:31 +0100
+Subject: [PATCH] Move stacking area to the left for the tiled layout
+
+---
+ config.def.h | 2 +-
+ dwm.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..edb152d 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -38,7 +38,7 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi
+
+ static const Layout layouts[] = {
+ /* symbol arrange function */
+- { "[]=", tile }, /* first entry is default */
++ { "=[]", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
+ { "[M]", monocle },
+ };
+diff --git a/dwm.c b/dwm.c
+index 4465af1..355e145 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -1687,11 +1687,11 @@ tile(Monitor *m)
+ for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
+ if (i < m->nmaster) {
+ h = (m->wh - my) / (MIN(n, m->nmaster) - i);
+- resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
++ resize(c, m->wx + m->ww - mw, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
+ my += HEIGHT(c);
+ } else {
+ h = (m->wh - ty) / (n - i);
+- resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
++ resize(c, m->wx, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
+ ty += HEIGHT(c);
+ }
+ }
+--
+2.28.0
+
diff --git a/dwm.suckless.org/patches/leftstack/index.md b/dwm.suckless.org/patches/leftstack/index.md
new file mode 100644
index 00000000..d0f20114
--- /dev/null
+++ b/dwm.suckless.org/patches/leftstack/index.md
_AT_@ -0,0 +1,18 @@
+leftstack
+=========
+
+Description
+-----------
+Changes the tiled layout, so that the stacking area is displayed on the
+left and the master area on the right.
+
+I didn't include this in the patch, but you might want to swap your key
+bindings for growing and shrinking the master area.
+
+Download
+--------
+* [dwm-leftstack-6.2.diff](dwm-leftstack-6.2.diff)
+
+Authors
+-------
+* Richard Ulmer - codesoap (at) mailbox (dot) org
Received on Sat Nov 21 2020 - 19:37:32 CET
This archive was generated by hypermail 2.3.0
: Sat Nov 21 2020 - 19:48:46 CET