summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-03-31 03:42:41 -0400
committerMalfurious <m@lfurio.us>2023-06-03 21:46:48 -0400
commitfbabcc368dd31a01dccee055e004cbbf76ef6942 (patch)
tree3662d850ab465d2dce23bb4f09b65442d4631e96
parentbf1aa11d8a658b5fe2ca2be32b0ae45a73a60cc0 (diff)
downloaddwm-fbabcc368dd31a01dccee055e004cbbf76ef6942.tar.gz
dwm-fbabcc368dd31a01dccee055e004cbbf76ef6942.zip
config: Add slock keybinds
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 59701de..ef95a02 100644
--- a/config.def.h
+++ b/config.def.h
@@ -58,11 +58,15 @@ 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 *slockucmd[] = { "slock", "-u", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_z, spawn, {.v = slockcmd } },
+ { MODKEY|ShiftMask, XK_z, spawn, {.v = slockucmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },