From aa5b6090f83ea55c145d371adfe7ee3a20a94e02 Mon Sep 17 00:00:00 2001 From: Victor Timofei Date: Wed, 8 Dec 2021 10:55:19 +0200 Subject: [PATCH] Add poweroff & restart commands --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.def.h b/config.def.h index edcff6a..a4dec05 100644 --- a/config.def.h +++ b/config.def.h @@ -105,10 +105,14 @@ static const char *dmenucmd[] = { "dmenu_run", NULL }; static const char *termcmd[] = { "alacritty", NULL }; static const char *togglelang[] = { "/home/vtimofei/scripts/toggle-language", NULL }; +static const char *poweroff[] = { "/home/vtimofei/scripts/poweroff", NULL }; +static const char *reboot[] = { "/home/vtimofei/scripts/reboot", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_p, spawn, {.v = poweroff } }, + { MODKEY|ShiftMask, XK_r, spawn, {.v = reboot } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } },