diff options
Diffstat (limited to 'keyboard/shutdownprompt')
-rwxr-xr-x | keyboard/shutdownprompt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard/shutdownprompt b/keyboard/shutdownprompt index 2b97be1..b56268d 100755 --- a/keyboard/shutdownprompt +++ b/keyboard/shutdownprompt @@ -1,6 +1,6 @@ #!/bin/sh -#option=`echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " -nb "#AA0000" -nf "#FFF" -sb "#FF0000" -sf "#FFF" || exit` # Run this separately from the case statement so dmenu prompt closes before running the command -[ -n "$1" ] && option="$1" || option=`echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " -nb "#AA0000" -nf "#FFF" -sb "#FF0000" -sf "#FFF" -nhb "#AA0000" -shb "#FF0000" -shf "#FAA" || exit` # Run this separately from the case statement so dmenu prompt closes before running the command +dmenucolors='-nb #AA0000 -nf #FFF -sb #FF0000 -sf #FFF' +[ -n "$1" ] && option="$1" || option=$(echo "Cancel\nSuspend\nShutdown\nRestart" | dmenu -p "Power Menu " $dmenucolors || exit) case $option in Suspend) launch zzz ;; Shutdown) launch off ;; |