nixos-config/modules/home/scripts/scripts/shutdown-script.sh
2024-06-23 20:51:59 +02:00

16 lines
303 B
Bash
Executable file

#!/usr/bin/env zsh
respond="$(echo " Shutdown\n Restart\n Cancel" | fuzzel --dmenu --lines=3 --width=10 --prompt='')"
if [ $respond = ' Shutdown' ]
then
echo "shutdown"
shutdown now
elif [ $respond = ' Restart' ]
then
echo "restart"
reboot
else
notify-send "cancel shutdown"
fi