From 7f29fd3235d9fb935788da98df79930ca4f34585 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 18 Sep 2014 09:25:59 +0200 Subject: [PATCH] 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. --- bin/input-event | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/input-event b/bin/input-event index 373f0ad..595d7b3 100755 --- a/bin/input-event +++ b/bin/input-event @@ -40,7 +40,8 @@ case "$event,$use,$(uname -n),$name" in # Are we getting docked? sleep 2 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 xkb default ;;