Closed mtoonen closed 6 years ago
Just add an application based configuration for "All" and set the screen to 1 and 2. Sorry for the screenshot, my second screen is currently not connected
Thanks for the quick reply! Works great! Is there a way to not let the action resize the window?
Currently no. The window is always moved and resized. What you suggest is just move_to_monitor
without resize and/or movement. For 2 screens this is possible without any config, but for > 2 screens this can get kind of nasty.
Only real solution i see is to add a flag to the configuration screen to disable move and resize and just move to the other screen(s).
Hi, how do you set a shortcut then to switch between the 2 configurations ?
Also not resizing the window would be nice.
Keyboard Shortcuts --> Move to configured location That's the shortcut, see screenshot:
Thks but sometimes when it move to says screen 2 it auto goes back to screen 1 and I'm unable to move it to screen 2. I had some Auto-Move defined but not anymore and I also tried with application on which I've never defined any Auto-Move and the same thing is happening.
Anyway not worth spending time for me as the resize is a killer for me, I'll look for another solution or see if I can come up with a PR.
Moving a window between multiple configured locations is just a simple loop. e.g. On the first key-press the window is always moved to the first configured location, no matter where the window is. The "lastPosition" is stored every time the window is moved using the short cut.
What you need is kind of a calculation that determines the "best matching" configuration and not just a simple loop.
If you just want to move the window from one screen to another you can use the "move to left/right screen" short cuts, or since gnome 3.8 (?) the build-in bindings
The behaviour described here is covered by gnome-shell build-in functions to move windows. Moving windows to configured location without resizing is covered by #135
Would it be possible to have a new option: move window to next monitor. It would work something like: In case of 2 monitors: Pressing the configured shortcut would put the window on the next monitor, pressing it again would place it at the first.
Currently, you need to have two shortcuts, this would reduce that to one.
Thanks!