diff --git a/config.h b/config.h index aa3202c..c133977 100644 --- a/config.h +++ b/config.h @@ -18,9 +18,11 @@ 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_green[] = "#384f00"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, + [SchemeSelMon] = { col_gray3, col_green, col_green }, // for selected monitor [SchemeSel] = { col_gray4, col_cyan, col_cyan }, }; diff --git a/dwm.c b/dwm.c index fc51ad5..3a5cce2 100644 --- a/dwm.c +++ b/dwm.c @@ -59,7 +59,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSelMon, SchemeSel }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ @@ -737,7 +737,11 @@ drawbar(Monitor *m) if(!(occ & 1 << i || m->tagset[m->seltags] & 1 << i)) continue; w = TEXTW(tags[i]); - drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); + if (m == selmon) { + drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSelMon : SchemeNorm]); + } else { + 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); x += w; }