"MouseKeys" in X-Windows on Linux / Unix

i

Wannabe Storage Freak
Joined
Feb 10, 2002
Messages
1,080
The following are paraphrased instructions from some place on the web (I think the original info came from an FAQ that has since disappeared off the web). MouseKeys can be so useful sometimes. Plus, this should work out of the box for pretty much any Unix-type OS running X. No hunting for some "Accesibility" option with the keyboard if your mouse just broke - if you're running an X windowing environment of some type, you most likely already have this feature ready and waiting to be used.


MouseKeys makes it possible to generate mouse motion and button events using the keyboard. Events generated by MouseKeys are completely transparent -- they will work with any application that connects to an X server.

You use "Shift+Num_Lock" ("Alt+Shift+Num_Lock" on some systems) to toggle MouseKeys on and off.

NOTE: You might have to make sure regular Num Lock is turned off for this to work.

When MouseKeys are on:

o) The keypad arrow keys move the pointer
o) The keypad '5' key behaves like the 'default' pointer button
o) The keypad '0' key locks the default pointer button (for easy dragging)
o) The keypad '.' key unlock the default pointer button (to release a drag)
o) The keypad '+' key double-clicks the default pointer button.
o) The keypad '/' key sets the 'default' button to Button1
o) The keypad '*' key sets the default button to Button2
o) The keypad '-' key sets the default button to Button3

This is the default configuration, but the mechanism allows for nearly infinite configurability. Search for the X Keyboard Extension - XKB - for information on how to customize MouseKeys functionality.
 
Top