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:
@@ -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)?'
|
||||
|
||||
Reference in New Issue
Block a user