X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=1e980f6f7c0f7bc8f96999e36f5162a3971f5403;hb=fc2c162d2f379b3b5f94322b762842e7cbf857d9;hp=1b65694e891086ce693d7dc8423529a71fb3f3a4;hpb=3b6bb6b6f15e1f1df22081e5e3938a10f99b83f5;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 1b65694..1e980f6 100755 --- a/autorandr.py +++ b/autorandr.py @@ -638,7 +638,7 @@ def get_fb_dimensions(configuration): if "off" in output.options or not output.edid: continue # This won't work with all modes -- but it's a best effort. - o_mode = re.search("^[0-9]+x[0-9]+", output.options["mode"]).group(0) + o_mode = re.search("[0-9]{3,}x[0-9]{3,}", output.options["mode"]).group(0) o_width, o_height = map(int, o_mode.split("x")) if "transform" in output.options: a, b, c, d, e, f, g, h, i = map(float, output.options["transform"].split(","))