! /etc/X11/xinit/.Xmodmap ! or ~/.Xmodmap ! ! This file sets key (and pointer) mappings for X. It is sourced in ! in the xinitrc files for each window manager. ! (i.e. xinitrc.fluxbox) ! Use xev to help figure these out. ! ! Force Backspace to 22 and Delete to 111 keycode 22 = BackSpace keycode 111 = Delete ! ! My keyboard handles right and left Alt differently. Make the ! Right act like the Left to avoid digital gymnastics !keycode 63 = Alt_L !keycode 113 = Meta_L keycode 113 = Alt_L keycode 109 = Control_L ! ! the windows menu button is useless in Linux, make it equal ! the left win button keycode 117 = Super_L ! ! Hard-code the keypad to numeric values as if Numlock is always on ! since I never use it for anything else. keycode 79=7 keycode 80=8 keycode 81=9 keycode 83=4 keycode 84=5 keycode 85=6 keycode 87=1 keycode 88=2 keycode 89=3 keycode 90=0 keycode 91=period keycode 86=plus ! ! change Numlock key since we don't need it now to something more useful ! like the same as the / button next to it keycode 77 = KP_Divide ! ! remap Keypad Enter (normally KP_Enter) to the same as regular Enter (normally Return) keycode 108 = Return ! ! My Capslock is next to tab. I hit it by mistake sometimes, ! and don't use it anyway. So make Capslock act like Tab keycode 66 = Tab clear lock