From e9519edd681556b57b9769dd5ba88f61bbf9b06a Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 5 Apr 2021 22:38:06 -0400 Subject: [PATCH] [dwm] Highlight tag background --- suckless/dwm/config.def.h | 4 +++- suckless/dwm/dwm.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h index a04e847..74d5f51 100644 --- a/suckless/dwm/config.def.h +++ b/suckless/dwm/config.def.h @@ -20,11 +20,13 @@ static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; +static const char col_gray5[] = "#303030"; +static const char col_cyan[] = "#555555"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeHigh] = { col_cyan, col_gray5, col_cyan }, }; /* tagging */ diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index 7e90bd2..b7777f7 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -65,7 +65,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeHigh }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ @@ -794,7 +794,7 @@ drawbar(Monitor *m) x = 0; for (i = 0; i < LENGTH(tags); i++) { w = boxw*4; - drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeHigh]); drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); if (occ & 1 << i) drw_rect(drw, x+boxw,boxw*1, w-boxw*2, w-boxw*2,