From ad75028347ac9a0da3db6d850976cfa5dd1144ea Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Fri, 14 Jun 2013 19:13:19 +0200 Subject: [PATCH] octopus suspend --- Utils/octopus.sh | 9 ++++++++- bashrc | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Utils/octopus.sh b/Utils/octopus.sh index 7e13f8e..efeb534 100755 --- a/Utils/octopus.sh +++ b/Utils/octopus.sh @@ -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 diff --git a/bashrc b/bashrc index bc7b79f..af539bf 100644 --- a/bashrc +++ b/bashrc @@ -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'