Skip to content

Commit

Permalink
Fix XRandr reporting displays on wayland session
Browse files Browse the repository at this point in the history
XRandr doesn't support wayland. Using it doesn't do anything (no error, no brightness).
  • Loading branch information
Crozzers committed Mar 2, 2024
1 parent 3db8344 commit b76b82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screen_brightness_control/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def _gdi(cls):
'manufacturer': None,
'manufacturer_id': None,
'edid': None,
'unsupported': line.startswith('XWAYLAND')
'unsupported': line.startswith('XWAYLAND') or 'WAYLAND_DISPLAY' in os.environ
}
display_count += 1

Expand Down

0 comments on commit b76b82f

Please sign in to comment.