Code Monkey home page Code Monkey logo

switch-monitor's People

Contributors

edouard-lopez avatar ntowbinj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

switch-monitor's Issues

terminal window odd behaviour

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

Modified for vertical layout. At the cost of sorting (doesn't matter with 2 monitors)

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...

Great script, but doesn't work for maximised or snapped apps...

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

windows are offset by a little bit

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.