Xmodmap

(or how I hate Caps Lock)
The caps lock key belongs on the back of the monitor,
In a safe,
At the bottom of the ocean...

On venus.

				P-Pomes, Nov 1993
xmodmap will allow you to remap your keyboard any way you'd like.
In my .xsession I have:

xmodmap $HOME/.xmodmap

where my .xmodmap file has:

!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
another example. makes alt key into meta (for you emacs hosers)
! make alt keys send meta
keysym Alt_L = Meta_L
keysym Alt_R = Meta_R
Makes the backspace key (^H) into delete (^?)
! make backspace send delete
keycode 23 = Delete
See the xmodmap man page for more details and examples.
x resources top xauth
jgross@uiuc.edu