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 +++- dwm | Bin 72912 -> 72984 bytes dwm.o | Bin 66992 -> 67216 bytes 3 files changed, 3 insertions(+), 1 deletion(-) 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 } }, diff --git a/dwm b/dwm index 1c3ad54..5c38e06 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 5bbee8a..4094fb0 100644 Binary files a/dwm.o and b/dwm.o differ -- cgit v1.2.3