From 954664c867ee2c75f3217c37ac70409f1e3ef2f4 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 30 Dec 2024 10:14:49 +0100 Subject: applied underline tags --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 7e8008f..1218622 100644 --- a/dwm.c +++ b/dwm.c @@ -1153,6 +1153,8 @@ drawbar(Monitor *m) w = TEXTW(tags[i]); drw_setscheme(drw, (m->tagset[m->seltags] & 1 << i ? tagscheme[i] : scheme[SchemeNorm])); drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); + if (ulineall || m->tagset[m->seltags] & 1 << i) /* if there are conflicts, just move these lines directly underneath both 'drw_setscheme' and 'drw_text' :) */ + drw_rect(drw, x + ulinepad, bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0); if (occ & 1 << i) drw_rect(drw, x + boxs, boxs, boxw, boxw, m == selmon && selmon->sel && selmon->sel->tags & 1 << i, @@ -1336,7 +1338,7 @@ focus(Client *c) } } // XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); - XSetWindowBorder(dpy, c->win, tagscheme[i - 1][1].pixel); + XSetWindowBorder(dpy, c->win, tagscheme[i - 1][0].pixel); setfocus(c); } else { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); @@ -2628,7 +2630,7 @@ dmenuspawn(const Arg *arg) break; } } - cmd[i] = strdup(tagsel[j - 1][1]); + cmd[i] = strdup(tagsel[j - 1][0]); if (!cmd[i]) { for (j = 0; j < i; j++) { free(cmd[j]); -- cgit v1.2.3