Change Active tag indicator

This commit is contained in:
Linux User
2022-08-16 19:40:57 +00:00
parent 5354bf1928
commit 1c94eb2b79
5 changed files with 15 additions and 7 deletions

18
dwm.c
View File

@@ -740,7 +740,7 @@ drawstatusbar(Monitor *m, int bh, char* stext) {
w += 2; /* 1px padding on both sides */
ret = m->ww - w;
x = m->ww - w - 2 * vpb;
x = m->ww - w - 2 * hpb;
drw_setscheme(drw, scheme[LENGTH(colors)]);
drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
@@ -839,10 +839,18 @@ drawbar(Monitor *m)
w = TEXTW(tags[i]);
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);
if (occ & 1 << i)
drw_rect(drw, x + boxs, boxs, boxw, boxw,
m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
urg & 1 << i);
if (occ & 1 << i) {
// drw_rect(drw, x + boxs, boxs, boxw, boxw,
// m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
// urg & 1 << i);
drw_rect(drw, x + w / 3, 0, w / 3, 2, 0, 0);
drw_rect(drw, x + w / 3, bh - 2, w / 3, 2, 0, 0);
if (m == selmon && selmon->sel && selmon->sel->tags & 1 << i) {
drw_rect(drw, x, 0, w, 2, 0, 0);
drw_rect(drw, x, bh - 2, w, 2, 0, 0);
}
}
x += w;
}
w = blw = TEXTW(m->ltsymbol);