[wiki] [sites] [dwm][staticmonoclesymbol] Add patch || aleks

From: <git_AT_suckless.org>
Date: Sat, 13 Apr 2019 22:16:36 +0200

commit e03f34ac193c82a1114fc3807a9821563773ffef
Author: aleks <aleks.stier_AT_icloud.com>
Date: Sat Apr 13 22:16:36 2019 +0200

    [dwm][staticmonoclesymbol] Add patch

diff --git a/dwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff b/dwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff
new file mode 100644
index 00000000..9deb6efc
--- /dev/null
+++ b/dwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff
_AT_@ -0,0 +1,34 @@
+From 3700a18554e035722682712ac68176166e47e0f2 Mon Sep 17 00:00:00 2001
+From: aleks <aleks.stier_AT_icloud.com>
+Date: Mon, 8 Apr 2019 22:17:10 +0200
+Subject: [PATCH] Don't display number of open clients in monocle-mode
+
+Always display the the monocle-symbol as defined in config.h if the
+monocle-layout is activated. Do not display the number of open clients
+in the current tag.
+---
+ dwm.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index 4465af1..3b98778 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -1103,14 +1103,8 @@ maprequest(XEvent *e)
+ void
+ monocle(Monitor *m)
+ {
+- unsigned int n = 0;
+ Client *c;
+
+- for (c = m->clients; c; c = c->next)
+- if (ISVISIBLE(c))
+- n++;
+- 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);
+ }
+--
+2.21.0
+
diff --git a/dwm.suckless.org/patches/staticmonoclesymbol/index.md b/dwm.suckless.org/patches/staticmonoclesymbol/index.md
new file mode 100644
index 00000000..ecc6d5d6
--- /dev/null
+++ b/dwm.suckless.org/patches/staticmonoclesymbol/index.md
_AT_@ -0,0 +1,16 @@
+static-monocle-symbol
+=====================
+
+Description
+-----------
+Always display the the monocle-symbol as defined in config.h if the
+monocle-layout is activated. Do not display the number of open clients
+in the current tag.
+
+Download
+--------
+* [dwm-staticmonoclesymbol-6.2.diff](dwm-staticmonoclesymbol-6.2.diff) (20190413)
+
+Authors
+-------
+* Aleksandrs Stier - `<aleks dot stier at icloud dot com>`
Received on Sat Apr 13 2019 - 22:16:36 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 13 2019 - 22:24:28 CEST