loader image

Move to Next Monitor Shortcut [Xubuntu]

What makes us different from other similar websites? Forums Tech Move to Next Monitor Shortcut [Xubuntu]

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6945
    thumbtak
    Keymaster

    If you are like me, and you have more than one monitor, you might want a keyboard shortcut that moves windows from one monitor to another. This can be done, with a short script and some configurations.

    $ cd /$USER/documents
    $ wget https://raw.githubusercontent.com/jc00ke/move-to-next-monitor/master/move-to-next-monitor
    $ chmod +x move-to-next-monitor
    $ mv move-to-next-monitor /somewhere/in/your/$PATH
    # Xubuntu 18.04
    $ sudo apt install xdotool wmctrl

    # Xubuntu 16.04
    $ sudo apt-get install xdotool

    Now you need to configure the script to run when a certain key combination is pressed.

    1. Applictions Menu
    2. Settings Manager
    3. Keyboard
    4. Application Shortcut
    5. + Add
    6. Command: [/home/$USER/Documents/move-to-next-monitor]
    7. Press [Shift] + [Super] + [Right]
    8. Note: 7 can be whatever you like. This just seems to be close to how other Linux systems and Windows does it. That is why I used this.
    9. You are finished.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
TAKs Shack