Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save / Restore window positions for different monitor layouts #3729

Closed
svargh opened this issue Jan 7, 2023 · 1 comment
Closed

Save / Restore window positions for different monitor layouts #3729

svargh opened this issue Jan 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@svargh
Copy link

svargh commented Jan 7, 2023

Is your feature request related to a problem? Please describe.
I have 13' laptop and it is docked at home, undocked during travel and docked at work@office.
At both placing I have two 42" screens @100%scale or three 42" screens @100%scale.

Describe the solution you'd like
It would be nice after traveling to reposition all the window positions for a specific layout home/work.

I use already WindowsLayoutSnapshot (https://github.com/svargh/WindowsLayoutSnapshot) for many years
WIn11 also provides such feature, but doesn't work reliable when docking between eGPU at home and WDTB4 docking at work.

Describe alternatives you've considered
Working: For applications running on my desktop, I use WindowsLayoutSnapshot (https://github.com/svargh/WindowsLayoutSnapshot).

Not working: I tried using wmctrl based scripts and manually:

wmctrl -p -G -l 
0x01a00006  0 37656  2666 238  1063 908  inst-dev-company ~/save_window_conf.sh  — Kate

wmctrl -r 0x01a00006 -e 0,2666,238,1063,508

Additional context
image

@svargh svargh added the enhancement New feature or request label Jan 7, 2023
@svargh svargh changed the title Save / Restore window positions Save / Restore window positions for different monitor layouts Jan 7, 2023
@totaam
Copy link
Collaborator

totaam commented Dec 3, 2023

xpra places application windows where requested / where they were last mapped, it may clamp them to the display when multiple clients share the same session with different display sizes. Anything more fancy than this does not belong in xpra.

FYI: v6 will now restore windows on the same workspace they were last mapped on: https://github.com/orgs/Xpra-org/discussions/4055

@totaam totaam closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants