octopus suspend
This commit is contained in:
parent
5135687c78
commit
ad75028347
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue