Xrandr
Most of my workstations are laptops. But because “age”, they are connected to an external 27" 4K monitor. It is used as my primary display and the laptop’s screen is disabled. And as I use WindowMaker as my daily window manager, I sometimes blank myself when I unplug the USB-C cable from the laptop.
There must be a way to automatically switch to the proper display when some USB-C monitors are (dis)connected… Other than switching to using Xfce, KDE, Gnome and other DEs that already implement this feature.Continue reading...