My workflow now has my machine connected to my displays 24/7, but years ago I had a workflow where I would take my work machine home with me and bring it back in the morning and connect it to a dock. I got so fed up with all the windows piling into the ‘main’ monitor and not remembering their locations, that I wrote a script using some tool I can’t remember now, that i’d set to a shortcut key, and it would throw the currently in focus window to the opposite monitor. Made it really fast to get to my working state where I wanted stuff. It wouldn’t work today because it was exploiting features of the X window system, so I doubt it would work in Wayland.
My workflow now has my machine connected to my displays 24/7, but years ago I had a workflow where I would take my work machine home with me and bring it back in the morning and connect it to a dock. I got so fed up with all the windows piling into the ‘main’ monitor and not remembering their locations, that I wrote a script using some tool I can’t remember now, that i’d set to a shortcut key, and it would throw the currently in focus window to the opposite monitor. Made it really fast to get to my working state where I wanted stuff. It wouldn’t work today because it was exploiting features of the X window system, so I doubt it would work in Wayland.