dwm-removeboxes-6.5.diff (1505B)
1 From dd804ef1b7a545092ecec7268c679f34f77ff76d Mon Sep 17 00:00:00 2001 2 From: Jakub Skowron <jakubskowron676@gmail.com> 3 Date: Wed, 25 Jun 2025 18:08:44 +0200 4 Subject: [PATCH] Remove boxes on tags and floating window title 5 6 This patch completely removes those small rectangles on active and 7 inactive tags as well as the rectangle that appears when a window 8 is in the floating layout. 9 --- 10 dwm.c | 8 -------- 11 1 file changed, 8 deletions(-) 12 13 diff --git a/dwm.c b/dwm.c 14 index 1443802..08b3767 100644 15 --- a/dwm.c 16 +++ b/dwm.c 17 @@ -698,8 +698,6 @@ void 18 drawbar(Monitor *m) 19 { 20 int x, w, tw = 0; 21 - int boxs = drw->fonts->h / 9; 22 - int boxw = drw->fonts->h / 6 + 2; 23 unsigned int i, occ = 0, urg = 0; 24 Client *c; 25 26 @@ -723,10 +721,6 @@ drawbar(Monitor *m) 27 w = TEXTW(tags[i]); 28 drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); 29 drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); 30 - if (occ & 1 << i) 31 - drw_rect(drw, x + boxs, boxs, boxw, boxw, 32 - m == selmon && selmon->sel && selmon->sel->tags & 1 << i, 33 - urg & 1 << i); 34 x += w; 35 } 36 w = TEXTW(m->ltsymbol); 37 @@ -737,8 +731,6 @@ drawbar(Monitor *m) 38 if (m->sel) { 39 drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); 40 drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); 41 - if (m->sel->isfloating) 42 - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); 43 } else { 44 drw_setscheme(drw, scheme[SchemeNorm]); 45 drw_rect(drw, x, 0, w, bh, 1, 1); 46 -- 47 2.50.0 48