Add poweroff & restart commands

This commit is contained in:
Victor Timofei 2021-12-08 10:55:19 +02:00
parent 34265b40bf
commit aa5b6090f8
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 4 additions and 0 deletions

View File

@ -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 } },