Skip to content

Commit

Permalink
Merge pull request #96 from dislabled/master
Browse files Browse the repository at this point in the history
powerline tags: change to urgentcolor when a client is urgent
  • Loading branch information
bakkeby authored Feb 20, 2021
2 parents 0f14ffa + 570ef24 commit 27185a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions patch/bar_powerline_tags.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,4 +103,4 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
arg->ui = 1 << i;
}
return ClkTagBar;
}
}

0 comments on commit 27185a7

Please sign in to comment.