From 123e881b19a39c73a355e61ce15c20ff908aadc1 Mon Sep 17 00:00:00 2001 From: Maciej Sitarz Date: Wed, 6 Apr 2011 17:20:11 +0200 Subject: [PATCH] Fix handling screens connected but "off" --- autorandr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]; -- 2.39.5