Commit 8fc24bca authored by epsi sayidina's avatar epsi sayidina

openbox: config: menu: exit: gxmessage

parent 0e4d79d8
#!/bin/bash
# https://urukrama.wordpress.com/2007/12/03/confirm-to-shut-down-reboot-or-log-out-in-openbox/
gxmessage "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) openbox --exit;;
3) systemctl reboot;;
4) systemctl poweroff;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment