[wiki] [sites] [dwm][patch][blanktags] Add blanktags patch || DogeyStamp

From: <git_AT_suckless.org>
Date: Wed, 07 Apr 2021 01:01:02 +0200

commit 616ed6effdda923e01e448b254e921417284d385
Author: DogeyStamp <adeng.sean_AT_gmail.com>
Date: Tue Apr 6 18:57:30 2021 -0400

    [dwm][patch][blanktags] Add blanktags patch

diff --git a/dwm.suckless.org/patches/blanktags/dwm-blanktags-20210406-67d76bd.diff b/dwm.suckless.org/patches/blanktags/dwm-blanktags-20210406-67d76bd.diff
new file mode 100644
index 00000000..57c735ff
--- /dev/null
+++ b/dwm.suckless.org/patches/blanktags/dwm-blanktags-20210406-67d76bd.diff
_AT_@ -0,0 +1,42 @@
+From 553c9f59f650c98d7782065b39725c9d2156c233 Mon Sep 17 00:00:00 2001
+From: DogeyStamp <adeng.sean_AT_gmail.com>
+Date: Tue, 6 Apr 2021 18:28:50 -0400
+Subject: [PATCH] Remove tag numbers and center tag indicator
+
+This patch makes tags square, removes the tag numbers, and centers the
+indicator showing a window is present so that the bar looks sleeker.
+---
+ dwm.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index b0b3466..88aa701 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -433,7 +433,7 @@ buttonpress(XEvent *e)
+ if (ev->window == selmon->barwin) {
+ i = x = 0;
+ do
+- x += TEXTW(tags[i]);
++ x += bh;
+ while (ev->x >= x && ++i < LENGTH(tags));
+ if (i < LENGTH(tags)) {
+ click = ClkTagBar;
+_AT_@ -716,11 +716,11 @@ drawbar(Monitor *m)
+ }
+ x = 0;
+ for (i = 0; i < LENGTH(tags); i++) {
+- w = TEXTW(tags[i]);
++ w = bh;
+ 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);
++ drw_text(drw, x, 0, bh, bh, 0, "", urg & 1 << i);
+ if (occ & 1 << i)
+- drw_rect(drw, x + boxs, boxs, boxw, boxw,
++ drw_rect(drw, x+boxw,boxw, w-boxw*2, w-boxw*2,
+ m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
+ urg & 1 << i);
+ x += w;
+--
+2.31.1
+
diff --git a/dwm.suckless.org/patches/blanktags/dwm-blanktags.png b/dwm.suckless.org/patches/blanktags/dwm-blanktags.png
new file mode 100644
index 00000000..ee6829be
Binary files /dev/null and b/dwm.suckless.org/patches/blanktags/dwm-blanktags.png differ
diff --git a/dwm.suckless.org/patches/blanktags/index.md b/dwm.suckless.org/patches/blanktags/index.md
new file mode 100644
index 00000000..2a36c8f4
--- /dev/null
+++ b/dwm.suckless.org/patches/blanktags/index.md
_AT_@ -0,0 +1,17 @@
+blanktags
+=========
+
+[![Screenshot](dwm-blanktags.png)](dwm-blanktags.png)
+
+Description
+-----------
+Makes tags square, removes the tag numbers, and centers the
+indicator showing a window is present so that the bar looks sleeker.
+
+Download
+--------
+* [dwm-blanktags-20210406-67d76bd.diff](dwm-blanktags-20210406-67d76bd.diff)
+
+Authors
+-------
+* DogeyStamp - <adeng.sean[at]gmail.com>
Received on Wed Apr 07 2021 - 01:01:02 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 07 2021 - 01:12:48 CEST