
The older way of doing something like this is to use the .Xresources file, unfortunately a lot of newer programs do not support xresources. I believe its possible in fvwm by using its "style" command to get applications to open up at particular size and position on any of its desktops. I use the "style" command to always cause xfig to open up on desktop 2. Lindsay ----- Original message ----- From: "Paul van den Bergen via luv-main" <luv-main@luv.asn.au> To: luv@oldfield.wattle.id.au Cc: LUV Main <luv-main@luv.asn.au> Subject: Re: Save and restore window positions with openbox Date: Mon, 23 Jul 2018 10:04:05 +1000 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_h... 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 _______________________________________________ luv-main mailing list luv-main@luv.asn.au https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main