summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-10-11 21:55:05 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-10-11 21:55:05 +0200
commit038991fa043edd2134dac85594bbd37d637361f5 (patch)
treee65a5a3577d91114cc19333903c49e9c365f1eb5
parentautodetect: Query xrandr as function (diff)
downloaddisplay_autoset-038991fa043edd2134dac85594bbd37d637361f5.tar.xz
autodetect: Add sleep before second xrandr query
I think there is some pause before xrandr provides the correct value.
-rwxr-xr-xautodetect.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/autodetect.sh b/autodetect.sh
index 6a7b6d4..05b40ef 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -134,6 +134,7 @@ elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1
fi
## Query current status
+sleep 1
XRANDR="$(query_xrandr)"
HASH="$(compute_hash "$XRANDR")"