[wiki] [sites] Add dwm-removetitle-6.2 patch || astier
commit 585f53b124a31bf8c0e4aad79fc5359302a415bd
Author: astier <aleksandrs.stier_AT_uni-bielefeld.de>
Date: Wed Feb 27 12:01:08 2019 +0100
Add dwm-removetitle-6.2 patch
diff --git a/dwm.suckless.org/patches/removetitle/dwm-removetitle-6.2.diff b/dwm.suckless.org/patches/removetitle/dwm-removetitle-6.2.diff
new file mode 100644
index 00000000..f54d079a
--- /dev/null
+++ b/dwm.suckless.org/patches/removetitle/dwm-removetitle-6.2.diff
_AT_@ -0,0 +1,38 @@
+From 1c612db8a70828f25cc20b669a3950bc29c1ce4f Mon Sep 17 00:00:00 2001
+From: astier <aleksandrs.stier_AT_uni-bielefeld.de>
+Date: Thu, 21 Feb 2019 16:39:23 +0100
+Subject: [PATCH] Remove client-title from the statusbar
+
+Remove the title of the currently selected client from the statusbar.
+This is useful for people who find no value in displaying the title
+and want to declutter their statusbar. Also it leads to simpler code
+since this patch only removes code.
+---
+ dwm.c | 11 ++---------
+ 1 file changed, 2 insertions(+), 9 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index 4465af1..3845492 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -729,15 +729,8 @@ drawbar(Monitor *m)
+ x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
+
+ if ((w = m->ww - sw - x) > bh) {
+- if (m->sel) {
+- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
+- drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
+- if (m->sel->isfloating)
+- drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
+- } else {
+- drw_setscheme(drw, scheme[SchemeNorm]);
+- drw_rect(drw, x, 0, w, bh, 1, 1);
+- }
++ drw_setscheme(drw, scheme[SchemeNorm]);
++ drw_rect(drw, x, 0, w, bh, 1, 1);
+ }
+ drw_map(drw, m->barwin, 0, 0, m->ww, bh);
+ }
+--
+2.20.1
+
diff --git a/dwm.suckless.org/patches/removetitle/index.md b/dwm.suckless.org/patches/removetitle/index.md
new file mode 100644
index 00000000..4d0368f4
--- /dev/null
+++ b/dwm.suckless.org/patches/removetitle/index.md
_AT_@ -0,0 +1,19 @@
+removetitle
+============
+
+Description
+-----------
+Remove the title of the currently selected client from the statusbar.
+This is useful for people who find no value in displaying the title
+and want to declutter their statusbar. Also it leads to simpler code
+since this patch only removes code.
+
+![removetitle](removetitle.png)
+
+Download
+--------
+* [dwm-removetitle-6.2.diff](dwm-removetitle-6.2.diff)
+
+Author
+------
+* Aleksandrs Stier - aleks.stier_AT_icloud.com
diff --git a/dwm.suckless.org/patches/removetitle/removetitle.png b/dwm.suckless.org/patches/removetitle/removetitle.png
new file mode 100644
index 00000000..0a09f145
Binary files /dev/null and b/dwm.suckless.org/patches/removetitle/removetitle.png differ
Received on Wed Feb 27 2019 - 12:03:14 CET
This archive was generated by hypermail 2.3.0
: Wed Feb 27 2019 - 12:12:28 CET