diff --git a/modules/home/scripts/scripts/shutdown-script.sh b/modules/home/scripts/scripts/shutdown-script.sh index 24ed8f8..96aa7ed 100755 --- a/modules/home/scripts/scripts/shutdown-script.sh +++ b/modules/home/scripts/scripts/shutdown-script.sh @@ -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 \ No newline at end of file +fi