[wiki] [sites] Added fullgaps to the monocle layout. || Andre Desgualdo Pereira

From: <git_AT_suckless.org>
Date: Sat, 14 Jun 2025 14:41:35 +0200

commit 1031ae1f1d92f03c8f5e81116104eb9f6626fdd9
Author: Andre Desgualdo Pereira <desgua_AT_gmail.com>
Date: Sat Jun 14 09:39:18 2025 -0300

    Added fullgaps to the monocle layout.
    
     Changes to be committed:
            new file: dwm-monocle-fullgaps.diff
            modified: index.md

diff --git a/dwm.suckless.org/patches/fullgaps/dwm-monocle-fullgaps.diff b/dwm.suckless.org/patches/fullgaps/dwm-monocle-fullgaps.diff
new file mode 100644
index 00000000..3050c2f8
--- /dev/null
+++ b/dwm.suckless.org/patches/fullgaps/dwm-monocle-fullgaps.diff
_AT_@ -0,0 +1,12 @@
+diff -up Original/dwm.c Original_monocle_gaps/dwm.c
+--- Original/dwm.c 2024-03-19 08:24:52.000000000 -0300
++++ Original_monocle_gaps/dwm.c 2025-04-20 10:08:40.906622682 -0300
+_AT_@ -1122,7 +1122,7 @@ 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 - m->gappx * 2, m->wh - 2 * c->bw - m->gappx * 2, 0);
+ }
+
+ void
diff --git a/dwm.suckless.org/patches/fullgaps/index.md b/dwm.suckless.org/patches/fullgaps/index.md
index 676376ed..a523840c 100644
--- a/dwm.suckless.org/patches/fullgaps/index.md
+++ b/dwm.suckless.org/patches/fullgaps/index.md
_AT_@ -27,9 +27,13 @@ fullgaps patch.)
 
 * [dwm-fullgaps-toggle-20200830.diff](dwm-fullgaps-toggle-20200830.diff)
 
+To add fullgaps to monocle use the following:
+* [dwm-monocle-fullgaps.diff](dwm-monocle-fullgaps.diff)
+
 Author
 ------
 * Maciej Janicki <mail_AT_macjanicki.eu>
 * David Julien <swy7ch_AT_protonmail.com> (20200504-b2e1dfc port)
 * Klein Bottle <kleinbottle4_AT_gmail.com> (dwm-fullgaps-toggle...)
 * Luka Rapava <luka.rapava2004_AT_gmail.com> (6.4 port)
+* André Desgualdo Pereira - desgua <desgua_AT_gmail.com> (monocle-fullgaps)
Received on Sat Jun 14 2025 - 14:41:35 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 14 2025 - 14:48:49 CEST