summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-10-29 22:45:23 +0100
committernavewindre <boneyaard@gmail.com>2024-10-29 22:45:23 +0100
commit394be9852c37bfb5672e7b776dc5d2e8af35605a (patch)
tree6ecf6edd4fad458a26c55a9980eb8d31b877cea9
parentbd63948bd5544985dfe282a74f7081f057da9ff8 (diff)
a
-rwxr-xr-x.signout.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