1
0
mirror of https://github.com/gryf/pyrandr.git synced 2025-12-23 00:57:58 +01:00

Changed regexp for matching outputs, so it is able to match also something like 'DP1-2'

This commit is contained in:
2017-10-13 15:05:06 +02:00
parent 33f97ed39e
commit d6741dc753

View File

@@ -9,7 +9,7 @@ import subprocess
import re
DISPLAY_RE = re.compile(r'^(?P<output>[a-zA-Z0-9]+)\s'
DISPLAY_RE = re.compile(r'^(?P<output>[a-zA-Z0-9-]+)\s'
r'(?P<status>d?i?s?connected)\s'
r'(?P<is_primary>primary\s)?'
r'(?P<active>\d+x\d+\+\d+\+\d+\s)?'