I once mentioned at a meeting that it was possible to control the X pointer
using numeric keypad controls, but at the time I couldn't remember the
details. This functionality makes accidently pulling your mouse cord a
little less painful! Here's how to do it:
0. Make sure your X server supports the keyboard extension. (Requires
X11R6.1 or higher.) xdpyinfo can tell you this; grep for XKEYBOARD.
1. Press Shift+NumLock to activate the mouse keys. (My system beeps when
this happens.) If Shift+NumLock doesn't work, try Alt+Shift+NumLock. If
this still doesn't work, try this shell command:
xmodmap -e "keysym Num_Lock = Num_Lock Pointer_EnableKeys"
2. Control the pointer using the following keys on the numeric pad:
Arrow numbers (2,4,6,8) move the pointer along the X or Y axis.
Other numbers (1,3,7,9) may move the pointer diagonally.
5 performs a single click of the "default" button.
+ performs a double click of the "default" button.
0 locks the "default" button for dragging.
. unlocks the "default" button to release a drag.
/ sets the "default" button to Button1.
* sets the "default" button to Button2.
- sets the "default" button to Button3.
3. Press Shift+NumLock to toggle out of the mode.
Happy mousing!
--
Chris Leyon
[EMAIL PROTECTED]