I may regret looking at this... 

I vaguely remember there being a profiles thing for Xorg et al, and there is, but it mostly seems to be "per desktop manager" not "per display configuration"

the only thing I could see that might help is the capacity to assign hot-keys to arbitrary configuration/commands with openbox...
https://wiki.archlinux.org/index.php/openbox#Launch_a_complex_command_with_hotkey

mind you, it's a loooong time since I bothered with this... 

On Sun, 22 Jul 2018 at 21:54, Kim Oldfield via luv-main <luv-main@luv.asn.au> wrote:
Hi,

Does anyone know how I can save (and later restore) the positions of my
windows on my screens?

On my laptop I'm running openbox as my window manager on Ubuntu 18.04.

At my desk I have a docking station with 2 external monitors. I've
configured keyboard shortcuts in openbox to configure my screens
appropriately for docked or undocked configuration (using xrandr).

Whenever I undock all my windows get moved over to fit on the laptop
screen - so when I dock the laptop again the windows are in the wrong
locations, and I have to manually position them in the appropriate
locations for my external monitors.

What I would like is a way to save my window positions before undocking,
and then a way to restore these window positions when I dock again later.

Does anyone have a solution or suggestions to help with this problem?

Regards,
Kim
_______________________________________________
luv-main mailing list
luv-main@luv.asn.au
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main


--
Dr Paul van den Bergen