Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Xubuntu 11.10 with a dual monitor setup. I am looking to create a keystroke (maybe CTRL + ALT + SPACE which will allow me send a selected window to the next monitor.

In GNOME there is a package called swapmonitor which is capable of sending the window to the other monitor. Calling this program with a keystroke achieves the same effect.

How is this done in XFCE/Xubuntu.


share|improve this question
Do you not have access to swapmonitor under Xubuntu? Or are you asking how to set a keyboard shortcut for it? – ire_and_curses Sep 17 '12 at 21:02
It doesnt seem to work on XFCE. Although I would like to know what options are out there. – boffin Sep 17 '12 at 22:55
How do you have the multiple monitors set up? As a large virtual screen, or separate X displays? Are you using nvidia twinview? – Keith Sep 18 '12 at 2:46
It is TwinView. I have an old Nvidia GeForce card with 2 Dell 19" monitors – boffin Sep 18 '12 at 2:54

This was posted a while ago and I am sure you have gotten your answer already, but for those who haven't.

Run these commands

sudo apt-get install xdotool
sudo apt-get install wmctrl

Then download the bash script from the following link (credit to jc00ke) https://github.com/jc00ke/bin/blob/master/move-to-next-monitor

Personally, I have a directory in my root where I store all my personal scripts. However, where you download it is really up to you. Change it to have permissions so you can execute. For example, save the scripts as move-to-next-monitor.sh and then execute the following

chmod 755 move-to-next-monitor.sh
  1. settings manager -> keyboard -> application shortcuts
  2. Click Add
  3. Click Open and direct it to your script
  4. Assign a keyboard shortcut to it and wallah!

You now have a keyboard shortcut to switch a window from 1 screen to another. I am not sure how it works with more than 2 screens.

share|improve this answer
The linked script had this issue for me: github.com/jc00ke/bin/issues/1 – thejoshwolfe Jun 17 at 23:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.