summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-01-06 14:24:44 +0100
committerjonsykkel <jonrevold@gmail.com>2021-01-06 14:24:44 +0100
commitc777ba3f5138013f7194844398469d3e4d83cba6 (patch)
tree2717e9d6d59fcdb94f6e67877474dda702e1d11f
parent3124eddce79bb91acdd4fc95511a9bbfe0cb20e0 (diff)
downloaddwm-c777ba3f5138013f7194844398469d3e4d83cba6.tar.gz
urgent
-rw-r--r--dwm.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 8d0fbfe..fafb33a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -745,12 +745,20 @@ drawbar(Monitor *m)
x = 0;
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);
+ //drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
+ int scheme_i;
+ if(urg & 1 << i){
+ scheme_i = SchemeUrgent;
+ }else if(m->tagset[m->seltags] & 1<<i){
+ scheme_i = SchemeSel;
+ }else{
+ scheme_i = SchemeNorm;
+ }
+ drw_setscheme(drw, scheme[scheme_i]);
+ drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], 0);
if (occ & 1 << i)
drw_rect(drw, x + boxs, boxs, boxw, boxw,
- m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
- urg & 1 << i);
+ m == selmon && selmon->sel && selmon->sel->tags & 1 << i, 0);
x += w;
}
w = blw = TEXTW(m->ltsymbol);