From c4ceaf674bcc3e3ea2164d055cfdb2b83d47bf87 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sat, 2 Nov 2024 03:01:54 +0100 Subject: a --- signout.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 signout.sh (limited to 'signout.sh') diff --git a/signout.sh b/signout.sh new file mode 100755 index 0000000..9ff7a52 --- /dev/null +++ b/signout.sh @@ -0,0 +1,12 @@ +gmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null + +case $? in +1) +echo "Exit";; +2) +killall openbox;; +3) +sudo shutdown -r now;; +4) +sudo shutdown -h now;; +esac -- cgit v1.2.3