dwm-titlecolor-20190206-6.2.diff (1611B)
1 From b15016b717c88eb378d87703dcf2169b6059047c Mon Sep 17 00:00:00 2001 2 From: knary <theknary@gmail.com> 3 Date: Wed, 6 Feb 2019 21:44:19 -0500 4 Subject: [PATCH] Adds title bar color scheme, seperating it from SchemeSel. 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 1c0b587..48e7ace 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 4465af1..216e1f3 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 @@ -730,7 +730,7 @@ drawbar(Monitor *m) 37 38 if ((w = m->ww - sw - 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.20.1 47