Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Under X Windows it is possible to move mouse cursor using shift+Num Lock and the numeric keypad as described in this wikipedia page. However, when you have two monitors running resolution of 3360x1050 moving cursor this way is rather slow. I am wondering if there is a way to quickly move mouse cursor anywhere inside of the active window.

A usage scenario is:

  1. Alt+tab to switch from "Window A" to "Window B" with both on two different monitor and both are visible. The mouse cursor stays in "Window A"
  2. Press some keyboard shortcut to send mouse cursor to "Window B"

Please let me know if there's some keyboard shortcut like this for any windows manager, bbkeys, etc.

I found that I can use something similar to

xdotool mousemove x y

to move cursor to a specific location. Thus, I create a script to do exactly that and map keys in my windows manager to call the script.

share|improve this question

migrated from stackoverflow.com Nov 3 '11 at 18:17

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

Alt+F7 does this for me in GNOME environment.

share|improve this answer
add comment

Your Answer

 
discard

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