From 3d2ecc424d66f7911a1c7b057e730dd7f2383d13 Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Thu, 21 Mar 2024 09:49:58 +0100 Subject: [PATCH] update shutdown script --- modules/home/scripts/scripts/shutdown-script.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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