Tags per monitor

This commit is contained in:
Przemek Grondek 2023-03-20 12:16:58 +01:00
parent e7d5655e90
commit e240a2a8ad
2 changed files with 7 additions and 2 deletions

View File

@ -42,7 +42,8 @@ static const char *colors[][3] = {
}; };
/* tagging */ /* tagging */
static const char *tags[] = { "1 \uF269", "2 \uf121", "3 \uf001", "4 \uf075", "5 \uF1B2", "6 \uF10C", "7 \uF1B6", "8 \uf17a", "9 \uf0ad"}; static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7 ", "8", "9"};
static const char *tags0[] = { "\uF269", "\uf121", "\uf001", "\uf075", "\uF1B2", "\uF10C", "\uF1B6", "\uf17a", "\uf0ad"};
static const Rule rules[] = { static const Rule rules[] = {
/* xprop(1): /* xprop(1):

4
dwm.c
View File

@ -940,7 +940,11 @@ drawbar(Monitor *m)
w = TEXTW(tags[i]); w = TEXTW(tags[i]);
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
if(m->num == 0){
drw_text(drw, x, 0, w, bh, lrpad / 2, tags0[i], urg & 1 << i);
} else {
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
}
x += w; x += w;
} }
w = TEXTW(m->ltsymbol); w = TEXTW(m->ltsymbol);