! This is an xmodmap(1X11) file I used to turn the left Alt key into a
! Meta key under Linux.  This allows me to use the right Alt key (as Alt)
! for menu traversal, but use the left Alt key (as Meta) for keyboard
! shortcuts.  If your keyboard has two Alt keys but no Meta keys (or two
! Meta keys but no Alt keys) you should be able to use the same concepts,
! but your keycodes will be different.  You can use the xev(1X11)
! application to figure out what keycodes correspond to what physical
! keys.

! eliminate caps lock and make it another control key:
!
clear lock
keycode 66 = Control_L
add control = Control_L

! make sure meta and alt both appear,
! but not on the same key (for Tk):
!
clear mod1
clear mod2
keycode 64 = Meta_L
keycode 113 = Alt_R
add mod1 = Meta_L
add mod2 = Alt_R

! explicitly set pointer assignments:
!
pointer = 1 2 3

