compton: kill compton before calling xrandr

This commit is contained in:
Vincent Bernat 2014-09-26 10:06:00 +02:00
parent e4ee166056
commit 8b72b4f80e

View file

@ -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