1 From 45a45a0e67f3841d8c4aed2c52b57c2a7ddf2a9a Mon Sep 17 00:00:00 2001 2 From: Jack Bird <jack.bird@durham.ac.uk> 3 Date: Sun, 15 Aug 2021 23:15:52 +0100 4 Subject: [PATCH] Updated title color patch for 7162335 5 6 --- 7 config.def.h | 1 + 8 dwm.c | 4 ++-- 9 2 files changed, 3 insertions(+), 2 deletions(-) 10 11 diff --git a/config.def.h b/config.def.h 12 index a2ac963..5b9ae00 100644 13 --- a/config.def.h 14 +++ b/config.def.h 15 @@ -16,6 +16,7 @@ static const char *colors[][3] = { 16 /* fg bg border */ 17 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, 18 [SchemeSel] = { col_gray4, col_cyan, col_cyan }, 19 + [SchemeTitle] = { col_gray4, col_cyan, col_cyan }, 20 }; 21 22 /* tagging */ 23 diff --git a/dwm.c b/dwm.c 24 index 5e4d494..73d335e 100644 25 --- a/dwm.c 26 +++ b/dwm.c 27 @@ -59,7 +59,7 @@ 28 29 /* enums */ 30 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 31 -enum { SchemeNorm, SchemeSel }; /* color schemes */ 32 +enum { SchemeNorm, SchemeSel, SchemeTitle }; /* color schemes */ 33 enum { NetSupported, NetWMName, NetWMState, NetWMCheck, 34 NetWMFullscreen, NetActiveWindow, NetWMWindowType, 35 NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ 36 @@ -731,7 +731,7 @@ drawbar(Monitor *m) 37 38 if ((w = m->ww - tw - x) > bh) { 39 if (m->sel) { 40 - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); 41 + drw_setscheme(drw, scheme[m == selmon ? SchemeTitle : SchemeNorm]); 42 drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); 43 if (m->sel->isfloating) 44 drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); 45 -- 46 2.32.0 47