Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I move the mouse pointer on Linux without actually moving the mouse?

share|improve this question

migrated from Apr 2 '10 at 12:45

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

Platform? Language? Anything that will put this question into context? – Oded Apr 2 '10 at 12:26
Which OS/language? – systempuntoout Apr 2 '10 at 12:26
I'm not sure whether moving mouse pointer without mouse is a best practice :) – Thomas Wanner Apr 2 '10 at 12:27
sounds like someone is trying to prevent themselves from going idle. – Nix Apr 2 '10 at 12:31

2 Answers 2

In windows, you can set this up in the Control Panel, under Accessibility Options in the Mouse tab. Checking the UseMouseKeys box allows you control the mouse with the keyboard.

share|improve this answer
sorry I am a linux user – Anonymous Apr 2 '10 at 12:34

Press right alt key with shift key with num lock key.

Now if we press the numbers it will move the mouse pointer! 5 performs a left-click.

share|improve this answer
RAlt+Shift+NumLock doesn't work for me, what does work is setxkbmap -option 'keypad:pointerkeys', then Shift+NumLock – mykhal Oct 10 '13 at 10:06

Your Answer


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