Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm using XFCE on a dual monitor setup, with Xorg configured to separate X screens (neither twinview nor cinerama is working on GF470 with latest nvidia drivers). I'm not using xrandr.

Suppose I have firefox running on one screen (:0.0) and thunderbird on the other (:0.1). When I want to switch focus from thunderbird to firefox, I need to move my mouse pointer to the firefox window and click (alt-tab switches between windows on a single screen only).

Is there any keyboard shortcut for switching focus between screens?

share|improve this question
up vote 1 down vote accepted

I managed to figure this out for myself on Ubuntu 10.10 (Gnome in my case). There doesn't appear to be a built-in shortcut, but there is a useful utility called DualscreenMouseUtils:

  1. Download dualscreen-mouse-utils archive from here
  2. Extract the archive: tar -zxvf
  3. Build the util: make mouse-switchscreen
  4. Copy the created executable to a bin directory, e.g. /usr/local/bin
  5. Set up a keyboard shortcut using your window manager that runs the executable whenever the shortcut is used.
share|improve this answer
Someone should package that... – tumbleweed Apr 4 '12 at 12:13
dualscreen-mouse-utils does not compile on Ubuntu 11.10; to compile it, you need to modify the Makefile by putting this line below mouse-switchscreen: $(CC) $< -o $@ $(LDFLAGS) – ang mo Apr 10 '12 at 15:27
Does that archive still exist? Currently getting trac errors... And most importantly: does this also work for more than two screens, or does it just flip between two? – Dirk Eddelbuettel Jul 25 '15 at 13:03
Hi @DirkEddelbuettel, in case you're still interested: see – Jacob Vlijm Oct 31 '15 at 9:19
Thanks , will take a look! – Dirk Eddelbuettel Oct 31 '15 at 13:26

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.