t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit b88f6a4c633ecf393c8f3cbd7626632d998fcc10 DIR parent b18fc38ccc3394eb9ba37f3f16174be69de63ada URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Wed, 6 Nov 2019 20:30:02 +0100 Adding color schemes Diffstat: M config.h | 4 ++++ M dwm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) --- DIR diff --git a/config.h b/config.h t@@ -10,6 +10,8 @@ static const char selbgcolor[] = "#181818"; // top bar selection bg static const char selfgcolor[] = "#eeeeee"; // top bar selection fg static const char normbordercolor[] = "#242424"; // window border bg static const char selbordercolor[] = "#990000"; // window border fg +static const char warncolor[] = "#DE6D03"; // status bg warning +static const char critcolor[] = "#B91807"; // status bg critical static const unsigned int borderpx = 1; // window border size px static const unsigned int gappx = 10; // window gap size px static const unsigned int snap = 8; // snap distance px t@@ -23,6 +25,8 @@ static const int topbar = 1; // 0 = bottom bar static const char *colors[][3] = { [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, [SchemeSel] = { selfgcolor, selbgcolor, selbordercolor }, + [SchemeWarn] = { selfgcolor, warncolor, selbordercolor }, + [SchemeCrit] = { selfgcolor, critcolor, selbordercolor }, }; /* dmenu options */ DIR diff --git a/dwm.c b/dwm.c t@@ -75,7 +75,7 @@ /* enums */ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeWarn, SchemeCrit }; /* color schemes */ enum { NetSupported, NetWMName, NetWMState, NetWMCheck, NetSystemTray, NetSystemTrayOP, NetSystemTrayOrientation, NetSystemTrayOrientationHorz, NetWMFullscreen, NetActiveWindow,