From e240a2a8ad39a2ddd4aef67a863febfa7b3dccc0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 20 Mar 2023 12:16:58 +0100 Subject: [PATCH] Tags per monitor --- config.h | 3 ++- dwm.c | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 02c86bf..47182c3 100644 --- a/config.h +++ b/config.h @@ -42,7 +42,8 @@ static const char *colors[][3] = { }; /* 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[] = { /* xprop(1): diff --git a/dwm.c b/dwm.c index a26da50..df58b08 100644 --- a/dwm.c +++ b/dwm.c @@ -940,7 +940,11 @@ drawbar(Monitor *m) w = TEXTW(tags[i]); drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + 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); + } x += w; } w = TEXTW(m->ltsymbol);