1 ! vim: ft=xmodmap
 2 !
 3 ! changing keyboard layout:
 4 !   setxkbmap us
 5 !
 6 ! xmodmap for en_GB keyboard layout with German umlauts
 7 !
 8 ! used websites to build this file:
 9 !   http://www.gentooforum.de/thread.php?threadid=12854
10 !   http://howtos.linux.com/howtos/Intkeyb/index.shtml
11 !   http://home.edo.uni-dortmund.de/~orclex/technik/linux.php
12 !
13 ! compose keys:
14 !   http://www.w3.org/Amaya/User/editing_iso-latin-1_characters/about_standard_multikey_support.html
15 
16 ! available keysyms:
17 !   /usr/include/X11/keysymdef.h
18 !
19 ! could be very interesting, too:
20 !   /usr/share/X11/xkb/
21 
22 ! to autoload the xmodmap, there are at least two options:
23 !   • name the file .Xmodmap (or create an symlink with that name)
24 !   • use an entry in ~/.xsession
25 !
26 ! compose keys:
27 !   /usr/share/X11/locale/en_US.UTF-8/Compose
28 
29 ! print current mappings:
30 !   xmodmap -pke
31 !
32 ! use 'xset -r 111' to disable 'repeat keys' for some keys
33 ! set repeat keys speed with 'xset r rate 200 25' for example
34 
35 clear Lock
36 
37 keysym 1 = 1 exclam onesuperior exclamdown
38 keysym 2 = 2 at twosuperior onehalf
39 keysym 3 = 3 numbersign threesuperior onethird
40 keysym 4 = 4 dollar onequarter threequarters
41 keysym 5 = 5 percent onefifth twofifths
42 keysym 6 = 6 asciicircum onesixth fivesixths
43 keysym 7 = 7 ampersand seveneighths
44 keysym 8 = 8 asterisk infinity oneeighth
45 keysym 9 = 9 parenleft plusminus
46 keysym 0 = 0 parenright infinity Greek_OMEGA
47 !
48 keycode 49 = grave notsign bar dead_acute
49 keycode 48 = apostrophe quotedbl rightsinglequotemark
50 keycode 21 = equal plus approxeq notequal
51 keycode 20 = minus underscore endash emdash
52 keycode 59 = comma less ellipsis lessthanequal
53 keycode 60 = period greater periodcentered greaterthanequal
54 keycode 61 = slash question enfilledcircbullet questiondown
55 !keycode 94 = less greater guillemotleft guillemotright
56 keycode 94 = backslash bar guillemotleft guillemotright
57 keycode 51 = numbersign asciitilde
58 
59 ! Caps-Lock
60 keycode 66 = Mode_switch
61 ! AltGr will switch mode too
62 keycode 108 = Mode_switch
63 ! left Windows key becomes Compose key
64 ! http://en.wikipedia.org/wiki/Compose_key
65 ! keycode 115 = Multi_key
66 
67 ! thinkpad buttons
68 keycode 166 = F28
69 keycode 167 = F29
70 
71 keysym a = a A adiaeresis Adiaeresis
72 keysym c = c C checkmark copyright
73 keysym d = d D degree
74 keysym e = e E EuroSign cent
75 keysym i = i I idiaeresis Idiaeresis
76 keysym m = m M mu
77 keysym o = o O odiaeresis Odiaeresis
78 
79 keysym v = v V uparrow downarrow
80 keysym b = b B rightarrow leftarrow
81 
82 keysym p = p P section sterling
83 keysym s = s S ssharp
84 keysym t = t T trademark
85 keysym u = u U udiaeresis Udiaeresis
86 keysym x = x X multiply
87 keysym y = y Y yen
88 
89 ! Control_R didn't work. this helped
90 add Control = Control_R
91 
92 !  keycode 112 = Left
93 !  keycode 113 = Left
94 !  keycode 114 = Right
95 !  keycode 115 = Up
96 !  keycode 116 = Down
97 !  keycode 105 = Control_R