]> git.phdru.name Git - dotfiles.git/blobdiff - lib/X11/.Xmodmap
.Xmodmap: Improve mapping of Shift (or NumLock) + keypad keys
[dotfiles.git] / lib / X11 / .Xmodmap
index 0270549b978df1ab166ca29424d2bb61573e3788..7168297dff0c687832cf03f28e081d09f652e21c 100644 (file)
@@ -5,16 +5,6 @@
 !clear mod3
 !clear mod4
 
-!       Key       Base            Shift           Caps    ShiftCaps
-!------------------------------------------------------------------------
-!keycode 113     = Alt_R
-
-! Disable RightWin
-keycode 94     =
-
-! RightMenu = Compose
-keycode 117     = Multi_key
-
 !add shift   = Shift_L Shift_R
 !add control = Control_L Control_R
 !add mod1    = Alt_L Alt_R
@@ -26,6 +16,27 @@ keycode 117     = Multi_key
 !clear mod5
 !add mod5 = Caps_Lock Mode_switch
 
+!       Key       Base            Shift           Caps    ShiftCaps
+!------------------------------------------------------------------------
+!keycode 113     = Alt_R
+
+! Map keypad keys, esp. with Shift: my kbd returns digits
+keycode 79 = KP_Home KP_7 KP_Home KP_7
+keycode 80 = KP_Up KP_8 KP_Up KP_8
+keycode 81 = KP_Prior KP_9 KP_Prior KP_9
+keycode 83 = KP_Left KP_4 KP_Left KP_4
+keycode 85 = KP_Right KP_6 KP_Right KP_6
+keycode 87 = KP_End KP_1 KP_End KP_1
+keycode 88 = KP_Down KP_2 KP_Down KP_2
+keycode 89 = KP_Next KP_3 KP_Next KP_3
+keycode 90 = KP_Insert KP_0 KP_Insert KP_0
+keycode 91 = KP_Delete KP_Decimal KP_Delete KP_Decimal
+
+! Disable RightWin
+!keycode 94     =
+
+! RightCtrl = Compose
+!keycode 105     = Multi_key
 
 !
 ! Some examples
@@ -41,10 +52,10 @@ keycode 117     = Multi_key
 ! add Lock = Caps_Lock
 ! add Control = Control_R
 
-!!!!! move around the escape key (PC only!)
-!!!!! `/~ key does Escape (shifted, ~)
-! keycode 49 = Escape asciitilde
-
 !!!!! make backspace be ` and ~
 ! keysym BackSpace = quoteleft asciitilde
 ! keycode 22 = quoteleft asciitilde
+
+!!!!! move around the escape key (PC only!)
+!!!!! `/~ key does Escape (shifted, ~)
+! keycode 49 = Escape asciitilde