! This is an xmodmap(1X11) file I use with the Microsoft Natural keyboard
! under Linux to provide distinct Meta and Alt keys.  It turns the two
! Windows-logo keys into Meta keys.  (It also sets the keysym of the
! menu-and-arrow key to Menu, although jstools doesn't do anything in
! particular with that key.)
! 
! I'm using Linux 1.2.1 (with XFree86 3.11); if you're using an earlier
! version, you may not be able to use these keys at all because the kernel
! doesn't read them.
! 
! If your keyboard has unused keys you'd like to turn into Alt or Meta
! 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 = Alt_L
keycode 113 = Alt_R
! Windows keys:
keycode 115 = Meta_L
keycode 116 = Meta_R
add mod1 = Meta_L Meta_R
add mod2 = Alt_L Alt_R

! Windows menu key:
keycode 117 = Menu

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

