From 2bd9faadcdde741134c827ab7d5e9c0321f00722 Mon Sep 17 00:00:00 2001 From: Jordan Ephron Date: Sun, 22 Dec 2019 19:08:34 -0800 Subject: [PATCH] Don't fail if xrandr reports negative gamma value --- autorandr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5