dwm-removetitle-6.2.diff (1241B)
1 From 1c612db8a70828f25cc20b669a3950bc29c1ce4f Mon Sep 17 00:00:00 2001 2 From: astier <aleksandrs.stier@uni-bielefeld.de> 3 Date: Thu, 21 Feb 2019 16:39:23 +0100 4 Subject: [PATCH] Remove client-title from the statusbar 5 6 Remove the title of the currently selected client from the statusbar. 7 This is useful for people who find no value in displaying the title 8 and want to declutter their statusbar. Also it leads to simpler code 9 since this patch only removes code. 10 --- 11 dwm.c | 11 ++--------- 12 1 file changed, 2 insertions(+), 9 deletions(-) 13 14 diff --git a/dwm.c b/dwm.c 15 index 4465af1..3845492 100644 16 --- a/dwm.c 17 +++ b/dwm.c 18 @@ -729,15 +729,8 @@ drawbar(Monitor *m) 19 x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); 20 21 if ((w = m->ww - sw - x) > bh) { 22 - if (m->sel) { 23 - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); 24 - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); 25 - if (m->sel->isfloating) 26 - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); 27 - } else { 28 - drw_setscheme(drw, scheme[SchemeNorm]); 29 - drw_rect(drw, x, 0, w, bh, 1, 1); 30 - } 31 + drw_setscheme(drw, scheme[SchemeNorm]); 32 + drw_rect(drw, x, 0, w, bh, 1, 1); 33 } 34 drw_map(drw, m->barwin, 0, 0, m->ww, bh); 35 } 36 -- 37 2.20.1 38