Return to repo list

suckless-gf-dwm

Gentoo-friendly patches for Suckless's dwm.
Return to HMagellan.com

commit 2b21ad67ff20c528cdec3c1fc708b1aea4785834
parent 32dd7a40ddd1841a5adc044f01a369a0e9231a4a
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Tue, 11 Aug 2020 12:50:31 -0500

added activetagindicatorbar

Diffstat:
Aactivetagindicatorbar/USAGE | 21+++++++++++++++++++++
Aactivetagindicatorbar/activetagindicatorbar.patch | 17+++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/activetagindicatorbar/USAGE b/activetagindicatorbar/USAGE @@ -0,0 +1,21 @@ +activetagindicatorbar - Changes the active tag indicator icon to a bar +Source: https://dwm.suckless.org/patches/activetagindicatorbar/ +Original Author: Leon Plickat <leonhenrik.plickat[at]stud.uni-goettingen.de> (6.1) + Griffin Bruno <griffinbruno[at]disroot.org> (6.2) + + +Description from source: + """ + This patch changes the rectangle indicating if a tag is used by a client into a bar above the tag name. + + Be sure to use a font which leaves enough space between the text of the tag name and the top of the bar. + """ + +== YOU MUST == +(1). Place the patch file in /etc/portage/patches/x11-wm/dwm/ and run 'emerge dwm' + +== YOU PROBABLY SHOULD == +No need for further action. + +== PATCH MODIFICATIONS == +No modifications were made to this patch. diff --git a/activetagindicatorbar/activetagindicatorbar.patch b/activetagindicatorbar/activetagindicatorbar.patch @@ -0,0 +1,17 @@ +diff -up dwm-a/dwm.c dwm-b/dwm.c +--- dwm-a/dwm.c 2019-02-02 06:55:28.000000000 -0600 ++++ dwm-b/dwm.c 2019-02-23 21:43:13.359179100 -0600 +@@ -719,9 +719,10 @@ drawbar(Monitor *m) + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + if (occ & 1 << i) +- drw_rect(drw, x + boxs, boxs, boxw, boxw, +- m == selmon && selmon->sel && selmon->sel->tags & 1 << i, +- urg & 1 << i); ++ drw_rect(drw, x + boxw, 0, w - ( 2 * boxw + 1), boxw, ++ m == selmon && selmon->sel && selmon->sel->tags & 1 << i, ++ urg & 1 << i); ++ + x += w; + } + w = blw = TEXTW(m->ltsymbol);