From 68d0d423f700a29db97dee710ebd72fb6b2cff8b Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Wed, 8 Apr 2015 10:14:39 +0200 Subject: [PATCH] Detect modes that have *current at the end of the mode line --- autorandr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autorandr.py b/autorandr.py index aa464d6..69125d1 100755 --- a/autorandr.py +++ b/autorandr.py @@ -106,9 +106,9 @@ class XrandrOutput(object): ))+ \s* (?P(?: - (?P[0-9]+)x(?P[0-9]+).+?\*current.+\s+ + (?P[0-9]+)x(?P[0-9]+).+?\*current.*\s+ h:.+\s+v:.+clock\s+(?P[0-9\.]+)Hz\s* | # Interesting (current) resolution: Extract rate - [0-9]+x[0-9]+.+\s+h:.+\s+v:.+\s* # Other resolutions + [0-9]+x[0-9]+(?:(?!\*current).)+\s+h:.+\s+v:.+\s* # Other resolutions )*) """ -- 2.39.2