dwm config updated for colors

This commit is contained in:
2015-05-17 21:28:43 -06:00
parent 0c9d12dae1
commit 9aa8a44ee5
+16 -12
View File
@@ -1,16 +1,20 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
/*includes*/
#include <X11/XF86keysym.h> /*Needed for mulitmedia keys*/
/* appearance */ /* appearance */
//static const char font[] = "Ohsnap.Icons:size=12";
static const char font[] = "Inconsolata-12"; static const char font[] = "Inconsolata-12";
static const char normbordercolor[] = "#444444"; #define NUMCOLORS 9
static const char normbgcolor[] = "#222222"; static const char colors[NUMCOLORS][ColLast][9] = {
static const char normfgcolor[] = "#bbbbbb"; // border foreground background
static const char selbordercolor[] = "#005577"; { "#212121", "#696969", "#121212" }, // 0 = normal
static const char selbgcolor[] = "#005577"; { "#696969", "#E0E0E0", "#121212" }, // 1 = selected
static const char selfgcolor[] = "#eeeeee"; { "#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 borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */ static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */ static const Bool showbar = True; /* False means no bar */
@@ -40,8 +44,8 @@ static const Layout layouts[] = {
/* key definitions */ /* key definitions */
#define MODKEY Mod1Mask #define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \ #define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.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 } } #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */ /* 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 }; static const char *termcmd[] = { "termite", NULL };
/*functions for volume control*/ /*functions for volume control*/
static const char *upvol[] = { "amixer", "sset", "Master", "1%+", NULL}; static const char *upvol[] = { "amixer", "sset", "Master", "1%+", NULL};