Files
nixos-config/glasshouse-desktop/home/scripts/scripts/shutdown-script.sh
2024-10-10 03:53:44 -04:00

16 lines
267 B
Bash
Executable File

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