It's not clear to me from the documentation
http://python-xlib.sourceforge.net/doc/html/python-xlib_toc.html
how I could deterministically check whether a given display output (eg: HDMI-1
) is extending or mirroring other display output.
the get_output_info
method in the example bellow does not contain any information from which I could derive that.
from Xlib import X, display, Xutil
from Xlib.ext import randr
d = display.Display()
root = d.screen().root
resources = root.xrandr_get_screen_resources()._data
outputs = []
for output in resources['outputs']:
_data = d.xrandr_get_output_info(output,
resources['config_timestamp'])._data
- Is it possible?
- if so, how please?
Thank you!