add shutdown key bind

This commit is contained in:
Frost-Phoenix 2023-12-07 00:18:14 +01:00
parent 6feac7c250
commit fa23067280
3 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,10 @@
#!/usr/bin/env zsh
respond="$(echo "---------------- Yes ----------------\n---------------- Nah ----------------" | wofi --show dmenu)"
if [ $respond = '---------------- Yes ----------------' ]
then
echo "shutdown"
shutdown now
else
notify-send "cancel shutdown"
fi