slock hotkey
@@ -77,6 +77,7 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = {"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL};
static const char *termcmd[] = {"st", NULL};
+static const char *slockcmd[] = {"slock", NULL};
static const char *rangercmd[] = { "st", "-e", "sh", "-c", "ranger", NULL };
#include "push.c"
@@ -84,6 +85,7 @@ static Key keys[] = {
/* modifier key function argument */
{MODKEY, XK_r, spawn, {.v = rangercmd } },
{MODKEY, XK_p, spawn, {.v = dmenucmd}},
+ {MODKEY | ControlMask, XK_l, spawn, {.v = slockcmd}},
{MODKEY | ShiftMask, XK_Return, spawn, {.v = termcmd}},
{MODKEY, XK_b, togglebar, {0}},
{MODKEY, XK_j, focusstack, {.i = +1}},
