From 1251eccf6de8a3a3758fd7a000b7ce82d2631f61 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 18 Sep 2014 07:29:40 +0200 Subject: [PATCH] dock: try to do the change in one command --- bin/input-event | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/input-event b/bin/input-event index fb4cb61..8ed6be3 100755 --- a/bin/input-event +++ b/bin/input-event @@ -33,15 +33,13 @@ case "$event,$use,$(uname -n),$name" in # No, still docked? : else - xrandr --output DP3 off --output DP4 off - xrandr --output eDP1 --auto --dpi 144 + xrandr --output DP3 off --output DP4 off --output eDP1 --auto --dpi 144 fi ;; Enabled,XISlaveKeyboard,zoro,"Topre Corporation Realforce 87") # Are we getting docked? sleep 2 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 fi ;;