[ create a new paste ] login | about

Link: http://codepad.org/wPo9Mx8P    [ raw code | fork ]

Patrick - Plain Text, pasted on Oct 17:
! /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)
! Last updated:
!   2009-10-17
! Use xev to help figure these out. All get parsed before executed, so if one
!   borks, they all bork. There is a new method that replaces clear with remove
!   and keycode with keysym, see the Caps_Lock section for examples.           
!       
!
! Force 22 to BackSpace and 107 to Delete so these two don't get switched up.
keycode 22  = BackSpace
keycode 107 = Delete
!
! My keyboard handles right and left Control/Alt differently. Make the right act
! like the left to avoid digital gymnastics.
keycode 113 = Alt_L
keycode 109 = Control_L
!
! The right windows menu button is useless in linux, make it equal the left
! win button.
keycode 117 = Super_L
!
! Change Num_Lock key since we hates it to something more useful, like the c
! button so that right handed copy is possible (Shift+Insert is already paste).
keycode 77  = c
!
! And hard-code the keypad to numeric values, thus removing their secondary
! functions.  Now with Num_Lock off (by default) and no way to change it, these
! keys will always be numbers.
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
!
! Make the other numpad keys equivalent to the regular keyboard keys since
! behavior is often different in terminals and such.
keycode 112 = slash
keycode 63  = asterisk
keycode 82  = minus
keycode 86  = plus
keycode 91  = period
keycode 108 = Return
!
! Caps_Lock is next to tab, and I hit it by mistake far more often than I use it
! intentionally.  So set Caps_Lock to act like Tab.
!clear Lock
!keycode 66 = Tab
remove Lock = Caps_Lock
keysym Caps_Lock = Tab
!



Create a new paste based on this one


Comments: