From b40b8bec316624e93ce2aa21e42fcd0d63b18c11 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 19 Dec 2023 11:07:40 -0500 Subject: add shutdown and lock function --- config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index 32ef02a..9f4fe20 100755 --- a/config.h +++ b/config.h @@ -73,9 +73,10 @@ static const char *dmenucmd[] = { "dmenu_run", NULL }; static const char *termcmd[] = { "st", NULL }; static const char *rsscmd[] = { "st", "newsboat", NULL }; static const char *browsercmd[] = { "brave", "--password-store=basic", NULL }; -static const char *discordcmd[] = { "com.discordapp.Discord", NULL }; +static const char *discordcmd[] = { "flatpak run com.discordapp.Discord", NULL }; static const char *screenshotcmd[] = { "flameshot", "gui", NULL }; static const char *mailcmd[] = { "thunderbird", NULL }; +static const char *shutdowncmd[] = { "shutdown", "-P", "0", NULL }; /* media keys */ static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "60", "+5%", NULL }; @@ -95,6 +96,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_d, spawn, {.v = discordcmd } }, { MODKEY, XK_n, spawn, {.v = rsscmd } }, { MODKEY, XK_e, spawn, {.v = mailcmd } }, + { MODKEY|ShiftMask, XK_Delete, spawn, {.v = shutdowncmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, -- cgit v1.2.3