Updated statuscolors patch

This commit is contained in:
2017-02-05 11:38:00 -05:00
parent 16a3334616
commit edd94ca487
3 changed files with 50 additions and 2 deletions

4
dwm.c
View File

@ -702,8 +702,8 @@ drawbar(Monitor *m)
/* draw status first so it can be overdrawn by tags later */
if (m == selmon) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
sw = drw_get_width(drw, LENGTH(colors), stext) + 2; /*2px right padding */
drw_color_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0, LENGTH(colors), scheme);
}
for (c = m->clients; c; c = c->next) {