dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit 126503aae5a349e49543bacedf57865b5e430df5
parent 310f259ae62f7cef1f900ebe7ac79194daf1943d
Author: hhvn <dev@hhvn.uk>
Date:   Sat,  8 Jan 2022 20:34:35 +0000

config.h dwm.c: change colours

Diffstat:
Mconfig.h | 20++++++++++++++------
Mdwm.c | 12++++++------
2 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/config.h b/config.h @@ -7,14 +7,21 @@ static const unsigned int snap = 1; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "monospace:size=8" }; +static const char *const bright = "#dddddd"; +static const char *const grey = "#777b8e"; +static const char *const dark = "#050a10"; +static const char *const red = "#90222b"; +static const char *const blue = "#1b364b"; +static const char *const azure = "#aaaaff"; +static const char *const green = "#0a2126"; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { "#bbbbbb", "#050a10", "#050a10" }, - [SchemeSel] = { "#eeeeee", "#30404e", "#892b2b" }, - [SchemeStat] = { "#aaaaff", "#0a2126", "#0a2126" }, - [SchemeBarInact] = { "#bbbbbb", "#24284c", "#050a10" }, - [SchemeNormFloat] = { "#bbbbbb", "#050a10", "#0a2126" }, - [SchemeUrgent] = { "#892b2b", "#050a10", "#050a10" }, + [SchemeNorm] = { bright, dark, dark }, + [SchemeSel] = { bright, blue, red }, + [SchemeStat] = { azure, green, dark }, + [SchemeBarInact] = { grey, dark, dark }, + [SchemeNormFloat] = { bright, dark, red }, + [SchemeUrgent] = { red, dark, dark }, }; /* tagging */ @@ -24,6 +31,7 @@ static const Rule rules[] = { { "Gimp", NULL, NULL, 1 << 7, 0, 0 }, { "mpv", NULL, NULL, 1 << 1, 0, 0 }, { "mpvrcp", NULL, NULL, 0, 1, -1 }, + { "cmus", NULL, NULL, 1 << 2, 1, -1 }, }; /* layout(s) */ diff --git a/dwm.c b/dwm.c @@ -871,9 +871,12 @@ drawbar(Monitor *m) remainder--; } drw_text(drw, x, 0, tabw - borderpx, bh, lrpad / 2, c->name, 0); - /* draw seperator */ - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x + tabw - borderpx, 0, borderpx, bh, 1, 1); + + if (c->next) { + /* draw seperator */ + drw_setscheme(drw, scheme[SchemeSel]); + drw_rect(drw, x + tabw - borderpx, 0, borderpx, bh, 1, 1); + } x += tabw; } @@ -881,9 +884,6 @@ drawbar(Monitor *m) if (m == selmon) { drw_setscheme(drw, scheme[SchemeSel]); drw_rect(drw, x, 0, w - borderpx, bh, 1, 1); - /* draw seperator */ - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x + w - borderpx, 0, borderpx, bh, 1, 1); } else { drw_setscheme(drw, scheme[SchemeNorm]); drw_rect(drw, x, 0, w, bh, 1, 1);