From 8b72b4f80e6df6c7b9ff335cea7cf370aeec4251 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 26 Sep 2014 10:06:00 +0200 Subject: [PATCH] compton: kill compton before calling xrandr --- bin/input-event | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/input-event b/bin/input-event index 004d010..564318d 100755 --- a/bin/input-event +++ b/bin/input-event @@ -22,9 +22,9 @@ case "$use,$(uname -n),$name" in # Are we getting docked? sleep 2 if xrandr | grep '^DP. connected'; then + pkill compton xrandr --output eDP1 --off --output DP3 --auto --primary xrandr --output DP4 --auto --right-of DP3 --dpi 96 - pkill compton sleep 1 echo 'awesome.restart()' | awesome-client fi