Move executables to user-bin

This commit is contained in:
Eduard Tolosa 2018-12-05 19:28:23 -05:00
parent 6b5b6f6326
commit fa648cd92e
4 changed files with 0 additions and 0 deletions

14
user-bin/propershutdown Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
xmessage "Are you sure you want to shut down the computer?" -center -title "Power options" -font "Monospace 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