I frequently attach and detach screens, and it would be nice if there was a way to automatically configure the external screen (at least in known cases/for known screens).
https://tyler.vc/auto-monitor-detection-on-linux describes how to tap into udev for detecting screen (un)plug events. Although I would certainly implement my handler differently (permission and environment handling), I think it's worth trying out something similar there (though potentially that will mostly happen in a dedicated tool, i.e. not in this dotfiles repo).
I frequently attach and detach screens, and it would be nice if there was a way to automatically configure the external screen (at least in known cases/for known screens).
https://tyler.vc/auto-monitor-detection-on-linux describes how to tap into udev for detecting screen (un)plug events. Although I would certainly implement my handler differently (permission and environment handling), I think it's worth trying out something similar there (though potentially that will mostly happen in a dedicated tool, i.e. not in this dotfiles repo).
But the basics are there.