From: Jordan Ephron Date: Mon, 23 Dec 2019 03:08:34 +0000 (-0800) Subject: Don't fail if xrandr reports negative gamma value X-Git-Tag: 1.10~16 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2bd9faadcdde741134c827ab7d5e9c0321f00722;p=deb_pkgs%2Fautorandr.git Don't fail if xrandr reports negative gamma value --- diff --git a/autorandr.py b/autorandr.py index 13877a3..b781f4d 100755 --- a/autorandr.py +++ b/autorandr.py @@ -173,7 +173,7 @@ class XrandrOutput(object): (?:[\ \t]*tracking\ (?P[0-9]+x[0-9]+\+[0-9]+\+[0-9]+))? # Tracking information (?:[\ \t]*border\ (?P(?:[0-9]+/){3}[0-9]+))? # Border information (?:\s*(?: # Properties of the output - Gamma: (?P(?:inf|[0-9\.: e])+) | # Gamma value + Gamma: (?P(?:inf|[0-9\.\-: e])+) | # Gamma value CRTC:\s*(?P[0-9]) | # CRTC value Transform: (?P(?:[\-0-9\. ]+\s+){3}) | # Transformation matrix EDID: (?P\s*?(?:\\n\\t\\t[0-9a-f]+)+) | # EDID of the output