dock: configure dual screen when docking with two commands

xrandr doesn't handle the configuration in one go. Moreover, we cannot
just disable internal panel first then configure dual screens.
This commit is contained in:
Vincent Bernat 2014-09-18 09:25:59 +02:00
parent 6f7d274cca
commit 7f29fd3235

View file

@ -40,7 +40,8 @@ case "$event,$use,$(uname -n),$name" in
# 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 --output DP3 --auto --primary --output DP4 --auto --right-of DP3 --dpi 96 xrandr --output eDP1 --off --output DP3 --auto --primary
xrandr --output DP4 --auto --right-of DP3 --dpi 96
fi fi
xkb default xkb default
;; ;;