summaryrefslogtreecommitdiff
path: root/signout.sh
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-11-02 03:01:54 +0100
committernavewindre <boneyaard@gmail.com>2024-11-02 03:02:41 +0100
commitc4ceaf674bcc3e3ea2164d055cfdb2b83d47bf87 (patch)
tree90130f38aa4001301897b08a0fad1cb735fd71ed /signout.sh
parent82769c7c587c36448e94070b945bd8bc69a1bc79 (diff)
a
Diffstat (limited to 'signout.sh')
-rwxr-xr-xsignout.sh12
1 files changed, 12 insertions, 0 deletions
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