curious about automating...
@hi @justine I have one script that starts with Xenodm. It checked which monitor is connected and activate only the laptop one (if external is not connected) or the external monitor, when it is there. I can also call it with a keybinding in case I disconnect the external monitor for some reason. xrandr is a great tool!
@hi or use hotplugd if you can identify some device from your monitor. Mine has a USB Hub so I get a lot of messages when monitor is (un)pluggued.
EDIT: like so https://www.tumfatig.net/2024/automatic-display-switch-for-openbsd-laptop/
Cc: @justine