We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a37be0 commit 68d0d42Copy full SHA for 68d0d42
autorandr.py
@@ -106,9 +106,9 @@ class XrandrOutput(object):
106
))+
107
\s*
108
(?P<modes>(?:
109
- (?P<mode_width>[0-9]+)x(?P<mode_height>[0-9]+).+?\*current.+\s+
+ (?P<mode_width>[0-9]+)x(?P<mode_height>[0-9]+).+?\*current.*\s+
110
h:.+\s+v:.+clock\s+(?P<rate>[0-9\.]+)Hz\s* | # Interesting (current) resolution: Extract rate
111
- [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
112
)*)
113
"""
114
0 commit comments