ntowbinj / switch-monitor Goto Github PK
View Code? Open in Web Editor NEWmove window to monitor with keyboard shortcut in X
move window to monitor with keyboard shortcut in X
Hi, thanks for the useful script.
In my PC i found out that the Terminal window has a different behaviour from the others (firefox, files..): it is only possible to switch it a random number of times between 2 monitors when it is in fullscreen.
Not a dealbreaker of course but wanted to let you know if you are interested.
I would look into that myself but i am a linux beginner.
My config:
Linux Mint 17 64 bit
Cinnamon 2.2.16
2xDell FHD(1920x1080) Monitors in "multi-display desktop with 2 displays" (from the AMD CCC).
Regards
Hi, thanks for the script. I use two monitors, one above the other. The script assumes the displays are side by side, so it didn't work. Here I've modified it to work. Just documenting it here in case someone is looking for the same thing. I would have made a pull request if I haden't broken your sorting of the displays in the process.
I have two monitors, so removing the sorting has no effect, and that's what I did. If someone has some sort of matrix of monitors :) fixing the sorting will make the script work for them.
Other than that, google chrome doesn't want to change displays when maximized, and some other windows, when docked to a side won't either, but I guess they are just stuborn...
This script is great for most of my usage requirements.
However it doesn't appear to work with most apps when maximised or snapped apps...
Is this a known issue?
Am running Fedora 20 with Cinnamon.
Lmk if you need any more info.
And cheers for an otherwise great script :)
Cheers
Gav
Hi, first of all thanks for the script.
It works great except for one thing: With every switch I do, the window gets offset a little bit from its original position. So after 2 or 3 switches most windows end up on the bottom of the screen.
I added some correction values in the script to counter the offset, which works fine.
# apply correction offsets
new_y=`expr $y - 36`
new_x=`expr $new_x - 1`
# move the window to the same relative x,y position in the other monitor
xdotool windowmove $window_id $new_x $new_y
Do you have any idea where that behaviour stems form?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.