update shutdown script

This commit is contained in:
Frost-Phoenix 2024-03-21 09:49:58 +01:00
parent 210e2eef88
commit 3d2ecc424d

View file

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