aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-23 16:16:25 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-23 16:16:25 +0530
commit2d75f3f88b8de063394a0535943b0e7d3b56344c (patch)
tree459cae40c450c89efc65c32252bfcef49abb78bc /patches
parent09ed528140fadeb5641bf6871f92ce83aa3d4880 (diff)
downloaddwm-2d75f3f88b8de063394a0535943b0e7d3b56344c.tar.gz
dwm-2d75f3f88b8de063394a0535943b0e7d3b56344c.tar.bz2
dwm-2d75f3f88b8de063394a0535943b0e7d3b56344c.zip
Made patch for adding gaps to dwm-monocle
Diffstat (limited to 'patches')
-rw-r--r--patches/dwm-monocle-gaps.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/dwm-monocle-gaps.diff b/patches/dwm-monocle-gaps.diff
new file mode 100644
index 0000000..83698af
--- /dev/null
+++ b/patches/dwm-monocle-gaps.diff
@@ -0,0 +1,29 @@
+From 09ed528140fadeb5641bf6871f92ce83aa3d4880 Mon Sep 17 00:00:00 2001
+From: Aryadev Chavali <aryadev@aryadevchavali.com>
+Date: Tue, 23 Apr 2024 16:12:19 +0530
+Subject: [PATCH] Monocle now uses gaps
+
+Just added gaps to moncole layout.
+---
+ dwm.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/dwm.c b/dwm.c
+index 19ee521..a6aaace 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1244,8 +1244,10 @@ monocle(Monitor *m)
+ if (n > 0) /* override layout symbol */
+ snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
+ for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
+- resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
++ resize(c, m->wx + m->gappx, m->wy + m->gappx,
++ m->ww - 2 * c->bw - (2 * m->gappx),
++ m->wh - 2 * c->bw - (2 * m->gappx),
++ 0);
+ }
+
+ void
+--
+2.44.0
+