diff --git a/config.def.h b/config.def.h index a0db609..259e2e9 100644 --- a/config.def.h +++ b/config.def.h @@ -24,6 +24,7 @@ static const char *colors[][3] = { }; /* tagging */ +static const char *tag_with_window = ""; static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; static const Rule rules[] = { diff --git a/dwm.c b/dwm.c index 5097048..562849e 100644 --- a/dwm.c +++ b/dwm.c @@ -727,11 +727,11 @@ drawbar(Monitor *m) for (i = 0; i < LENGTH(tags); i++) { 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); + drw_text(drw, x, 0, w, bh, lrpad / 2, tag_with_window, urg & 1 << i); + else + drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); x += w; } w = TEXTW(m->ltsymbol);