[wiki] [sites] dwm/patches: Add 'activetagindicatorbar' patch || Leon Plickat

From: <git_AT_suckless.org>
Date: Tue, 15 Jan 2019 20:47:25 +0100

commit 1c96317fec38e42cc817e06d4f4655c7901cc690
Author: Leon Plickat <leonhenrik.plickat_AT_stud.uni-goettingen.de>
Date: Tue Jan 15 20:44:16 2019 +0100

    dwm/patches: Add 'activetagindicatorbar' patch
    
    This patch changes the rectangle showing if a tag is in use by a
    client into a bar above the tag name.

diff --git a/dwm.suckless.org/patches/activetagindicatorbar/activetagindicatorbar.png b/dwm.suckless.org/patches/activetagindicatorbar/activetagindicatorbar.png
new file mode 100644
index 00000000..817508b7
Binary files /dev/null and b/dwm.suckless.org/patches/activetagindicatorbar/activetagindicatorbar.png differ
diff --git a/dwm.suckless.org/patches/activetagindicatorbar/dwm-activetagindicatorbar-6.1.diff b/dwm.suckless.org/patches/activetagindicatorbar/dwm-activetagindicatorbar-6.1.diff
new file mode 100644
index 00000000..aea05fd8
--- /dev/null
+++ b/dwm.suckless.org/patches/activetagindicatorbar/dwm-activetagindicatorbar-6.1.diff
_AT_@ -0,0 +1,12 @@
+diff -up dwm-a/dwm.c dwm-b/dwm.c
+--- dwm-a/dwm.c 2019-01-15 19:59:21.363468198 +0100
++++ dwm-b/dwm.c 2015-11-08 23:39:37.000000000 +0100
+_AT_@ -720,7 +720,7 @@ drawbar(Monitor *m)
+ w = TEXTW(tags[i]);
+ drw_setscheme(drw, m->tagset[m->seltags] & 1 << i ? &scheme[SchemeSel] : &scheme[SchemeNorm]);
+ drw_text(drw, x, 0, w, bh, tags[i], urg & 1 << i);
+- drw_rect(drw, x + 1, 1, dx, dx, m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
++ drw_rect(drw, x + dx, 0, w - ( 2 * dx + 1 ), dx / 2, m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ occ & 1 << i, urg & 1 << i);
+ x += w;
+ }
diff --git a/dwm.suckless.org/patches/activetagindicatorbar/index.md b/dwm.suckless.org/patches/activetagindicatorbar/index.md
new file mode 100644
index 00000000..2166d6df
--- /dev/null
+++ b/dwm.suckless.org/patches/activetagindicatorbar/index.md
_AT_@ -0,0 +1,21 @@
+activetagindicatorbar
+=====================
+
+Description
+-----------
+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.
+
+![activetagindicatorbar screenshot](activetagindicatorbar.png)
+
+Download
+--------
+* [dwm-activetagindicatorbar-6.1.diff](dwm-activetagindicatorbar-6.1.diff) (15.1.2019)
+
+Author
+------
+* Leon Plickat <leonhenrik[dot]plickat[at]stud[dot]uni-goettingen[dot]de>
+
Received on Tue Jan 15 2019 - 20:47:25 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 15 2019 - 20:48:28 CET