Skip to content

Commit

Permalink
Fix handling screens connected but "off"
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Sitarz committed Apr 6, 2011
1 parent 6099cfa commit 123e881
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autorandr
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 123e881

Please sign in to comment.