dwm-custom-activetagindicator.diff (1403B)
1 diff --git a/dwm/config.def.h b/dwm/config.def.h 2 --- a/dwm/config.def.h 3 +++ b/dwm/config.def.h 4 @@ -21,6 +21,7 @@ static const char *colors[][3] = { 5 /* fg bg border */ 6 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, 7 [SchemeSel] = { col_gray4, col_cyan, col_cyan }, 8 + [SchemeBar] = { col_cyan, col_cyan, col_cyan }, // Dirty workaround lol 9 }; 10 11 /* tagging */ 12 diff --git a/dwm/dwm.c b/dwm/dwm.c 13 --- a/dwm/dwm.c 14 +++ b/dwm/dwm.c 15 @@ -59,7 +59,7 @@ 16 17 /* enums */ 18 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 19 -enum { SchemeNorm, SchemeSel }; /* color schemes */ 20 +enum { SchemeNorm, SchemeSel, SchemeBar }; /* color schemes */ 21 enum { NetSupported, NetWMName, NetWMState, NetWMCheck, 22 NetWMFullscreen, NetActiveWindow, NetWMWindowType, 23 NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ 24 @@ -746,10 +746,10 @@ drawbar(Monitor *m) 25 w = TEXTW(tags[i]); 26 drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); 27 drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); 28 - if (occ & 1 << i) 29 - drw_rect(drw, x + boxs, boxs, boxw, boxw, 30 - m == selmon && selmon->sel && selmon->sel->tags & 1 << i, 31 - urg & 1 << i); 32 + if (occ & 1 << i) { 33 + drw_setscheme(drw, scheme[SchemeBar]); 34 + drw_rect(drw, x, 0, w, 2, 1, 0); 35 + } 36 x += w; 37 } 38 w = blw = TEXTW(m->ltsymbol);