First, run xev from a terminal. With the xev window focused, press each of the keys you want to get working, and make a note of the keycode it reports. Now, edit ~/.Xmodmap (or /etc/X11/Xmodmap for system-wide) so it looks something like this:

The !s mark comments, if you hadn't guessed. Now you need to make this file be run when X starts. The standard Xsession and Gnome sessions should load /etc/X11/Xmodmap without any further work, but if you want to use ~/.Xmodmap (neater, IMHO), add 'allow-user-modmap' to /etc/X11/Xsession.options (on its own line, no indent).

After restarting X, you need to add shortcuts for those keys to your window manager (or bbkeys or whatever). Under Gnome and KDE, use {g,k}control to do this. Open up the shortcut dialog, press Grab, then one of the extra keys. You can assign whatever action you like, but one of the most useful is 'Run shell script'.

Here are a couple of mine:

Alexis Lee (LxS), 27.5.2002


TipsTricksAndWorkarounds FixMe

ItouchKeys (last edited 2007-02-22 11:44:43 by )