summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMouad Alami <mouad@alami.xyz>2025-07-21 12:16:14 +0100
committerMouad Alami <mouad@alami.xyz>2025-07-21 12:16:14 +0100
commitf2c66f7ab3f8b96c952905cf09afd443fee80c6d (patch)
treeb963b16d7f0a37417cf2ef39f632c69417f3d7f6
parent9e1c7b43b360d51211e37c76a05afb7c70b3d5e9 (diff)
added turnoff script that waits for mbsync
-rw-r--r--config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.h b/config.h
index 47016c8..8628ff2 100644
--- a/config.h
+++ b/config.h
@@ -32,6 +32,8 @@ static const char *toggle_vol[] = {"/home/mouad/.local/bin/volume/toggle_vol", N
static const char *wallpaper[] = {"/home/mouad/.local/bin/background", NULL};
+static const char *turnoff[] = {"/home/mouad/.local/bin/turnoff", NULL};
+
/* brightness control */
static const char *inc_bright[] = { "/home/mouad/.local/bin/brightness/inc_bright", NULL};
static const char *dec_bright[] = { "/home/mouad/.local/bin/brightness/dec_bright", NULL};
@@ -125,7 +127,7 @@ static const Key keys[] = {
TAGKEYS(XK_9 , 8)
/* Custom commands */
- {MODKEY | ShiftMask, XK_o, spawn, SHCMD("[ $(echo -e 'Yes\nNo' | dmenu -i -p 'Are you sure you want to shutdown?') == 'Yes' ] && shutdown now")},
+ {MODKEY | ShiftMask, XK_o, spawn, {.v = turnoff}},
{MODKEY | ShiftMask, XK_l, spawn, SHCMD("slock")},