From c597b01166c4ac4d042c2256826b69c6fb0bc405 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 23 Oct 2008 19:52:30 +0200 Subject: first init --- openbox_shutdown.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 openbox_shutdown.sh (limited to 'openbox_shutdown.sh') diff --git a/openbox_shutdown.sh b/openbox_shutdown.sh new file mode 100755 index 0000000..12cfc9e --- /dev/null +++ b/openbox_shutdown.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +gxmessage "What do you want to do?" -center -title "Shut down?" -buttons "Cancel:1,Halt:2,Reboot:3,Suspend:4" -borderless + +case $? in + 1) echo "Exit" ;; + + 2) sudo shutdown -h now ;; + + 3) sudo shutdown -r now ;; + + 4) sudo pm-suspend ;; +esac -- cgit v1.2.3-24-g4f1b