update shutdown script
This commit is contained in:
parent
210e2eef88
commit
3d2ecc424d
|
@ -1,10 +1,15 @@
|
||||||
#!/usr/bin/env zsh
|
#!/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 ----------------' ]
|
if [ $respond = '---------------- Yes ----------------' ]
|
||||||
then
|
then
|
||||||
echo "shutdown"
|
echo "shutdown"
|
||||||
shutdown now
|
shutdown now
|
||||||
|
elif [ $respond = '-------------- Restart --------------' ]
|
||||||
|
then
|
||||||
|
echo "restart"
|
||||||
|
reboot
|
||||||
else
|
else
|
||||||
notify-send "cancel shutdown"
|
notify-send "cancel shutdown"
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue