diff options
| author | Mouad Alami <mouad@alami.xyz> | 2025-07-21 12:16:14 +0100 |
|---|---|---|
| committer | Mouad Alami <mouad@alami.xyz> | 2025-07-21 12:16:14 +0100 |
| commit | f2c66f7ab3f8b96c952905cf09afd443fee80c6d (patch) | |
| tree | b963b16d7f0a37417cf2ef39f632c69417f3d7f6 | |
| parent | 9e1c7b43b360d51211e37c76a05afb7c70b3d5e9 (diff) | |
added turnoff script that waits for mbsync
| -rw-r--r-- | config.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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")}, |
