octopus suspend

This commit is contained in:
Frank Villaro-Dixon 2013-06-14 19:13:19 +02:00
parent 5135687c78
commit ad75028347
2 changed files with 10 additions and 1 deletions

View file

@ -41,6 +41,9 @@ case $1 in
--output VGA1 --auto --rotate normal \
--right-of LVDS1
;;
"off")
xset dpms force off
;;
esac
$0 wallpaper
;;
@ -59,7 +62,6 @@ case $1 in
;;
"init-all")
xrandr | grep "VGA1 disconnected" > /dev/null
if [ $? -eq 0 ]
then
@ -69,6 +71,11 @@ case $1 in
fi
$0 wallpaper
;;
"suspend")
systemctl suspend
xlock -mode blank
esac

2
bashrc
View file

@ -97,6 +97,8 @@ alias volup='$OCTOPUS volume up'
alias voldown='$OCTOPUS volume down'
alias volmute='$OCTOPUS volume mute'
alias suspend='$OCTOPUS suspend'
#MONITOR_PATH=~/Programmation/Utils/monitor.sh
#alias dual='$MONITOR_PATH dual'