I have an HDMI monitor which I unplug and plug back into my laptop from time to time. When I unplug the monitor, all the windows are moved onto the laptop display. However, when I plug it back in, all the windows are moved onto the 2nd display (which is on the left of the laptop display), even though I haven't moved them myself.
How can I make KDE preserve which display each window is on across unplug-and-replug?
Best Answer
You can save the current position of windows with:
You can restore them with:
The restore could be much simpler, but I found I needed to toggle things on and off for windows that were arranged by the window manager after dragging near a side or top, and then expanded (by the wm) to fill half the monitor.