Our great sponsors
-
autorandr
Auto-detect the connected display hardware and load the appropriate X11 setup using xrandr
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Autorandr works great, and I combined it with this tool I found somewhere along the line, umonitor. https://github.com/rliou92/python-umonitor
Check autorand. You can save profiles and automatically load them if an hdmi connection/disconnection is detected.
In my case, i3-gnome-flashback. As a result I have the typical desktop setup where the Gnome settings panel can control the monitor layout, and it remembers previously seen monitors and restores the layout.