diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-10-11 21:55:05 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-10-11 21:55:05 +0200 |
commit | 038991fa043edd2134dac85594bbd37d637361f5 (patch) | |
tree | e65a5a3577d91114cc19333903c49e9c365f1eb5 /autodetect.sh | |
parent | autodetect: Query xrandr as function (diff) | |
download | display_autoset-038991fa043edd2134dac85594bbd37d637361f5.tar.xz |
autodetect: Add sleep before second xrandr query
I think there is some pause before xrandr provides the correct value.
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-x | autodetect.sh | 1 |
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")" |