0% found this document useful (0 votes)
29 views2 pages

How To Move A Window To The Next Monitor On Xfce (Xubuntu) : Installation

This document provides instructions for moving a window to the next monitor in Xfce or any other window manager using xdotool and wmctrl. It describes installing the necessary tools, testing the move-to-next-monitor script, and configuring a keyboard shortcut to activate the script. The script was created by the author since existing solutions did not work properly across multiple monitors.

Uploaded by

Mauca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

How To Move A Window To The Next Monitor On Xfce (Xubuntu) : Installation

This document provides instructions for moving a window to the next monitor in Xfce or any other window manager using xdotool and wmctrl. It describes installing the necessary tools, testing the move-to-next-monitor script, and configuring a keyboard shortcut to activate the script. The script was created by the author since existing solutions did not work properly across multiple monitors.

Uploaded by

Mauca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to move a window to the next monitor on X... https://makandracards.com/makandra/12447-ho...

How to move a window to the next monitor on


Xfce (Xubuntu)
Unfortunately, Compiz does not play nice with Xfce for me and Xfce itself does not offer a way to
move a window to the next monitor.

Since I use this a lot in my daily work and there were no scripts working properly for me, I made one
myself.
It's actually not bound to Xfce but should work on any window manager (haven't tried it, though).

Installation
1. If you don't yet have xdotool, install it:

sudo apt-get install xdotool

2. If you don't yet have wmctrl, install it:

sudo apt-get install wmctrl

3. Store the attached file in some place that's in your PATH.


The cool kids use ~/bin/.

4. Make it executable: chmod +x ~/bin/move-to-next-monitor

Trying it
Open up a terminal and run it:

move-to-next-monitor

There should be no errors and the terminal window should have moved one monitor to the right.

Assigning a keyboard shortcut


1. Open up the Xfce settings → Keyboard → Keyboard shortcuts
2. Add an entry for move-to-next-monitor and assign a keyboard shortcut to it.
3. It should be active right away, so try it on the settings window. :)

Done!

Props to icyrock.com (http://icyrock.com/blog/2012/05/xubuntu-moving-windows-between-monitors/) who had a

1 of 2 3/11/18, 5:44 PM
How to move a window to the next monitor on X... https://makandracards.com/makandra/12447-ho...

script that was basically working (not properly on 3 monitors and was lacking some workarounds)
and saved me quite some time figuring this all out.

Posted by Arne Hartherz to makandra dev

2 of 2 3/11/18, 5:44 PM

You might also like