Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

1 Answer 1

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)

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 and then execute the following

chmod 755
  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

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.