From f2c66f7ab3f8b96c952905cf09afd443fee80c6d Mon Sep 17 00:00:00 2001 From: Mouad Alami Date: Mon, 21 Jul 2025 12:16:14 +0100 Subject: added turnoff script that waits for mbsync --- config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")}, -- cgit v1.2.3