https://github.com/ext/xorg_query
Python module to query xorg for information about displays, screens, resolutions etc.
https://github.com/ext/xorg_query
Last synced: about 1 month ago
JSON representation
Python module to query xorg for information about displays, screens, resolutions etc.
- Host: GitHub
- URL: https://github.com/ext/xorg_query
- Owner: ext
- Created: 2011-01-07T22:20:26.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-04-20T20:38:13.000Z (about 14 years ago)
- Last Synced: 2026-02-19T04:28:37.221Z (4 months ago)
- Language: C
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Python module to query xorg for information about displays, screens, resolutions etc.
>>> import xorg_query
>>> xorg_query.screens()
[':0.0', ':0.1']
>>> xorg_query.current_resolution()
(1280, 1024)
>>> xorg_query.current_resolution(':0.1')
(1920, 1080)
etc.