From: Phillip Berndt Date: Wed, 8 Apr 2015 08:14:39 +0000 (+0200) Subject: Detect modes that have *current at the end of the mode line X-Git-Tag: 1.0~60 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=68d0d423f700a29db97dee710ebd72fb6b2cff8b Detect modes that have *current at the end of the mode line --- 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 )*) """