From 667beb1ae356e8782da96016db752a822f5c1d97 Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 11 Jul 2024 21:15:19 -0400 Subject: [PATCH] window follow icon & layout icon color schemes --- config.def.h | 4 ++++ dwm.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index bb9b641..f52477e 100644 --- a/config.def.h +++ b/config.def.h @@ -26,12 +26,16 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_cyan }, [SchemeHid] = { col_cyan, col_gray1, col_cyan }, + [SchemeLay] = { col_cyan, "#00ff00", col_cyan }, + [SchemeWf] = { col_cyan, "#00ffff", col_cyan }, }; static const unsigned int alphas[][3] = { /* fg bg border*/ [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, [SchemeSel] = { OPAQUE, baralpha, borderalpha }, [SchemeHid] = { OPAQUE, baralpha, borderalpha }, + [SchemeLay] = { OPAQUE, baralpha, borderalpha }, + [SchemeWf] = { OPAQUE, baralpha, borderalpha }, }; static const char *const autostart[] = { diff --git a/dwm.c b/dwm.c index 0c8a74b..f1ce21a 100644 --- a/dwm.c +++ b/dwm.c @@ -67,7 +67,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel, SchemeHid }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeHid, SchemeLay, SchemeWf }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetWMFullscreen, NetActiveWindow, NetWMWindowType, NetWMWindowTypeDialog, NetClientList, NetClientInfo, NetLast }; /* EWMH atoms */ @@ -980,10 +980,11 @@ drawbar(Monitor *m) x += w; } w = TEXTW(m->ltsymbol); - drw_setscheme(drw, scheme[SchemeSel]); + drw_setscheme(drw, scheme[SchemeLay]); x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); w = TEXTW(wfsymbol); + drw_setscheme(drw, scheme[SchemeWf]); x = drw_text(drw, x, 0, w, bh, lrpad / 2, wfsymbol, 0); if ((w = m->ww - tw - x) > bh) {