Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

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.