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); icon = tagicon(bar->mon, i);
invert = 0; invert = 0;
w = TEXTW(icon); w = TEXTW(icon);
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])); drw_settrans(drw, prevscheme, (nxtscheme = scheme[bar->mon->tagset[bar->mon->seltags] & 1 << i ? SchemeSel : SchemeNorm]));
}
#if BAR_POWERLINE_TAGS_SLASH_PATCH #if BAR_POWERLINE_TAGS_SLASH_PATCH
drw_arrow(drw, x, a->y, plw, a->h, 1, 1); drw_arrow(drw, x, a->y, plw, a->h, 1, 1);
#else #else