powerline tags: change to urgentcolor when a client is urgent

This commit is contained in:
dislabled 2021-02-20 12:05:55 +01:00
parent 0f14ffade1
commit 570ef2469b

View File

@ -52,7 +52,11 @@ draw_pwrl_tags(Bar *bar, BarArg *a)
icon = tagicon(bar->mon, i);
invert = 0;
w = TEXTW(icon);
drw_settrans(drw, prevscheme, (nxtscheme = scheme[bar->mon->tagset[bar->mon->seltags] & 1 << i ? SchemeSel : SchemeNorm]));
if (urg & 1 << i ) {
drw_settrans(drw, prevscheme, (nxtscheme = scheme[bar->mon->tagset[bar->mon->seltags] & 1 << i ? SchemeSel : SchemeUrg]));
} else {
drw_settrans(drw, prevscheme, (nxtscheme = scheme[bar->mon->tagset[bar->mon->seltags] & 1 << i ? SchemeSel : SchemeNorm]));
}
#if BAR_POWERLINE_TAGS_SLASH_PATCH
drw_arrow(drw, x, a->y, plw, a->h, 1, 1);
#else
@ -99,4 +103,4 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
arg->ui = 1 << i;
}
return ClkTagBar;
}
}