# HG changeset patch # User Henry Precheur # Date 1423183297 28800 # Thu Feb 05 16:41:37 2015 -0800 # Node ID f5870f2bc70425cb01e5f145e62172271a73ea4c # Parent 8a5a2bca3f2c1c9d64727a10911b371431dab003 Add slock shortcut diff --git a/custom_config b/custom_config --- a/custom_config +++ b/custom_config @@ -3,7 +3,7 @@ diff -r 52cda53b5610 config.def.h --- a/config.def.h Wed Feb 04 09:59:51 2015 -0800 -+++ b/config.def.h Thu Feb 05 10:22:10 2015 -0800 ++++ b/config.def.h Thu Feb 05 16:41:25 2015 -0800 @@ -2,12 +2,12 @@ /* appearance */ @@ -15,7 +15,7 @@ -static const char selbgcolor[] = "#005577"; -static const char selfgcolor[] = "#eeeeee"; +static const char normbordercolor[] = "#003000"; -+static const char normbgcolor[] = "#445044"; ++static const char normbgcolor[] = "#102010"; +static const char normfgcolor[] = "#aaaaaa"; +static const char selbordercolor[] = "#ff0000"; +static const char selbgcolor[] = "#006600"; @@ -38,7 +38,7 @@ static const int nmaster = 1; /* number of clients in master area */ static const Bool resizehints = True; /* True means respect size hints in tiled resizals */ -@@ -51,14 +52,14 @@ +@@ -51,14 +52,16 @@ /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ @@ -46,17 +46,19 @@ -static const char *termcmd[] = { "st", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; +static const char *termcmd[] = { "urxvt", NULL }; ++static const char *lockcmd[] = { "slock", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, togglebar, {0} }, ++ { MODKEY|ControlMask, XK_Delete, spawn, {.v = lockcmd } }, + { MODKEY|ShiftMask, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, -@@ -68,11 +69,10 @@ +@@ -68,11 +71,10 @@ { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} },