Here's a script to do xrandr
style manipulation via xcffib. It does:
- runs everything in its preferred mode
- automatic DPI scaling to match the highest DPI monitor if the monitors do not have the same DPI
- EDID resolution so that people can reason about devices with stable names
It's not really intended to be consumable by anyone besides someone who might want to design a real abstraction on top and needs to know what the API calls for scaling/disabling monitors/rotating things would look like in python.