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.

Is it possible to assign mouse keys (left click 1, middle click 2, right click 3, etc) to keyboard keys by modifying a file in /etc/X11/xorg.conf.d? If so, how can I do that?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I had thought someone told me or I heard somewhere that xorg by default supports keyboard driven mouse emulation out of the box. The movement, etc. is bound to the numpad keys. This article I dug up quick seems to indicate I have heard correctly. No direct experience, so this may be incorrect.


share|improve this answer
For completeness that's shift+num lock to toggle keypad-as-mouse mode. Works in Debian for me. – donothingsuccessfully May 31 '12 at 19:58
@donothingsuccessfully thanks for the great input. – Tim May 31 '12 at 20:30

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.