From: Maciej Sitarz Date: Sun, 12 Feb 2012 13:10:06 +0000 (+0100) Subject: Handle outputs with "unknown connection" as "off". X-Git-Tag: 1.0~167 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=10ec66f3c26b4a4212dc757df04cd9abc98c39c4;p=deb_pkgs%2Fautorandr.git Handle outputs with "unknown connection" as "off". --- diff --git a/autorandr b/autorandr index 89d5e25..376b1ae 100755 --- a/autorandr +++ b/autorandr @@ -126,7 +126,8 @@ current_cfg_xrandr() { next; } # disconnected or disabled displays - /^[^ ]+ (dis)?connected / { + /^[^ ]+ (dis)?connected / || + /^[^ ]+ unknown connection / { print "output "$1; print "off"; next;