From: Maciej Sitarz Date: Wed, 6 Apr 2011 15:20:11 +0000 (+0200) Subject: Fix handling screens connected but "off" X-Git-Tag: 1.0~171 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=123e881b19a39c73a355e61ce15c20ff908aadc1;p=deb_pkgs%2Fautorandr.git Fix handling screens connected but "off" --- diff --git a/autorandr b/autorandr index 70e3c7a..de703b9 100755 --- a/autorandr +++ b/autorandr @@ -118,7 +118,11 @@ current_cfg_xrandr() { print "output "$1; print "off"; } - /^[^ ]+ connected / { + /^[^ ]+ connected \(/ { + print "output "$1; + print "off"; + } + /^[^ ]+ connected [^(]/ { split($3, A, "+"); print "output "$1; print "mode "A[1];