From 15639af246b3a25ab88b08550ae475bd69448a7d Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 2 Apr 2021 17:44:03 -0400 Subject: [PATCH] [dwm] Add suspend bind (can be used to lock with xss-lock) --- suckless/dwm/config.def.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h index 06a3e9f..2c45f92 100644 --- a/suckless/dwm/config.def.h +++ b/suckless/dwm/config.def.h @@ -67,11 +67,13 @@ 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, "-n", NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *suspendcmd[] = { "systemctl", "suspend", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_s, spawn, {.v = suspendcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },