Move to Next Monitor Shortcut [Xubuntu]
- This topic has 0 replies, 1 voice, and was last updated 1 year, 7 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
What makes us different from other similar websites? › Forums › Tech › Move to Next Monitor Shortcut [Xubuntu]
Tagged: Bash, GitHub, jc00ke, Keyboard shortcut, Linux, Move-to-next-monitor, Muilt-monitor, script, Scripting, Window managment, wmctrl, xdotool, Xubuntu
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.