]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fix handling screens connected but "off"
authorMaciej Sitarz <macieks@freesco.pl>
Wed, 6 Apr 2011 15:20:11 +0000 (17:20 +0200)
committerMaciej Sitarz <macieks@freesco.pl>
Wed, 6 Apr 2011 15:20:11 +0000 (17:20 +0200)
autorandr

index 70e3c7a2a311028b428822d0c5efa8fbb154e826..de703b9ad2f8ed38e2daa5d307ee80807b5e0db2 100755 (executable)
--- 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];