diff --git a/dwm.config.h b/dwm.config.h index 7b820cd..98b24c5 100644 --- a/dwm.config.h +++ b/dwm.config.h @@ -1,16 +1,20 @@ /* See LICENSE file for copyright and license details. */ -/*includes*/ -#include /*Needed for mulitmedia keys*/ /* appearance */ -//static const char font[] = "Ohsnap.Icons:size=12"; static const char font[] = "Inconsolata-12"; -static const char normbordercolor[] = "#444444"; -static const char normbgcolor[] = "#222222"; -static const char normfgcolor[] = "#bbbbbb"; -static const char selbordercolor[] = "#005577"; -static const char selbgcolor[] = "#005577"; -static const char selfgcolor[] = "#eeeeee"; +#define NUMCOLORS 9 +static const char colors[NUMCOLORS][ColLast][9] = { + // border foreground background + { "#212121", "#696969", "#121212" }, // 0 = normal + { "#696969", "#E0E0E0", "#121212" }, // 1 = selected + { "#212121", "#CF4F88", "#121212" }, // 2 = red + { "#212121", "#53A6A6", "#121212" }, // 3 = green + { "#212121", "#914E89", "#121212" }, // 4 = yellow + { "#212121", "#4779B3", "#121212" }, // 5 = blue + { "#212121", "#47959E", "#121212" }, // 6 = cyan + { "#212121", "#7E62B3", "#121212" }, // 7 = magenta + { "#212121", "#899CA1", "#121212" }, // 8 = grey + }; static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const Bool showbar = True; /* False means no bar */ @@ -40,8 +44,8 @@ static const Layout layouts[] = { /* key definitions */ #define MODKEY Mod1Mask #define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, @@ -49,7 +53,7 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -static const char *dmenucmd[] = { "dmenu_run", "-fn", "Inconsolata-12", "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL }; static const char *termcmd[] = { "termite", NULL }; /*functions for volume control*/ static const char *upvol[] = { "amixer", "sset", "Master", "1%+", NULL}; @@ -91,7 +95,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) + TAGKEYS( XK_3, 2) TAGKEYS( XK_4, 3) { MODKEY|ShiftMask, XK_q, quit, {0} }, };