dock: try to do the change in one command

This commit is contained in:
Vincent Bernat 2014-09-18 07:29:40 +02:00
parent fba170f85c
commit 1251eccf6d

View file

@ -33,15 +33,13 @@ case "$event,$use,$(uname -n),$name" in
# No, still docked? # No, still docked?
: :
else else
xrandr --output DP3 off --output DP4 off xrandr --output DP3 off --output DP4 off --output eDP1 --auto --dpi 144
xrandr --output eDP1 --auto --dpi 144
fi fi
;; ;;
Enabled,XISlaveKeyboard,zoro,"Topre Corporation Realforce 87") Enabled,XISlaveKeyboard,zoro,"Topre Corporation Realforce 87")
# Are we getting docked? # Are we getting docked?
sleep 2 sleep 2
if xrandr | grep '^DP. connected'; then if xrandr | grep '^DP. connected'; then
xrandr --output eDP1 --off
xrandr --output eDP1 --off --output DP3 --auto --primary --output DP4 --auto --right-of DP3 --dpi 96 xrandr --output eDP1 --off --output DP3 --auto --primary --output DP4 --auto --right-of DP3 --dpi 96
fi fi
;; ;;