sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit e03f34ac193c82a1114fc3807a9821563773ffef
parent 2071f188e86b5279b21e889ea3946ce94fd56dd3
Author: aleks <aleks.stier@icloud.com>
Date:   Sat, 13 Apr 2019 22:16:36 +0200

[dwm][staticmonoclesymbol] Add patch

Diffstat:
Adwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff | 34++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/staticmonoclesymbol/index.md | 16++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff b/dwm.suckless.org/patches/staticmonoclesymbol/dwm-staticmonoclesymbol-6.2.diff @@ -0,0 +1,34 @@ +From 3700a18554e035722682712ac68176166e47e0f2 Mon Sep 17 00:00:00 2001 +From: aleks <aleks.stier@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 +@@ -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 @@ -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>`