1 ! .xmodmap bind X characters to keys
2 ! Following http://www.in-ulm.de/~mascheck/X11/input8bit.html
3 ! get keycodes with xev
5 ! Use Alt_R for Mode_switch
6 keycode 108 = Mode_switch
9 !add mod3 = Mode_switch
11 ! Compose key with Super_R
12 keycode 134 = Multi_key
13 ! Compose key with Menu (for keyboards without Super_R)
14 keycode 135 = Multi_key
16 ! U208* is subscript *
17 ! U00B9 is superscript one
18 keycode 10 = 1 exclam U2081 U00B9
19 keycode 11 = 2 at U2082 twosuperior
20 keycode 12 = 3 numbersign U2083 threesuperior
21 keycode 13 = 4 dollar U2084 foursuperior
22 keycode 14 = 5 percent U2085 fivesuperior
23 keycode 15 = 6 asciicircum U207B U00B9
24 ! U2080 is subscript zero
25 ! U2070 is superscript zerp
26 keycode 16 = 7 ampersand U2080 U2070
27 ! U00B7 is the middle dot
28 ! U2219 is the bullet operator
29 ! U22C5 is the dot operator
30 keycode 17 = 8 asterisk infinity U22C5
31 ! U2248 is almost equal (asymptotic)
32 keycode 18 = 9 parenleft U2248
33 ! U2205 is the empty set
34 keycode 19 = 0 parenright emptyset
35 ! U207B is superscript minus
37 ! U2213 is minus-or-plus
38 keycode 20 = minus underscore U2212 U2213
39 keycode 21 = equal plus notequal plusminus
40 ! U221A is the square root sign (radical)
41 ! U211A is the set of all rationals
42 keycode 24 = q Q radical U211A
43 ! U1E84 is LATIN CAPITAL LETTER W WITH DIAERESIS
44 keycode 25 = w W Greek_omega U1E84
45 ! U2203 is there exists
46 ! U2130 is the electromotive force
47 ! U212F is the natural exponent symbol (script small e)
48 keycode 26 = e E Greek_epsilon U2130
49 ! U211D is the set of reals numbers
50 keycode 27 = r R Greek_rho U211D
51 keycode 28 = t T Greek_tau Greek_theta
52 keycode 29 = y Y Greek_psi Greek_PSI
53 keycode 30 = u U Greek_eta
54 ! U222C is a double integral
55 keycode 31 = i I integral U222C
56 ! U2126 is the ohm sign (different codepoint from Omega (U03A9))
57 keycode 32 = o O elementof U2126
58 ! U220F is the n-ary product (different codepoint from Pi (U03A0))
59 keycode 33 = p P Greek_pi U220F
60 keycode 34 = bracketleft braceleft leftsinglequotemark leftdoublequotemark
61 keycode 35 = bracketright braceright rightsinglequotemark rightdoublequotemark
63 keycode 38 = a A Greek_alpha U2200
64 ! U2211 is the n-ary summation (different codepoint from Sigma (U03A3))
65 keycode 39 = s S Greek_sigma U2211
66 ! U2202 is partial differential
67 ! (for some reason the keysym partialderivative wasn't working on my eeepc).
68 keycode 40 = d D U2202 Greek_delta
69 keycode 41 = f F function Greek_phi
70 keycode 42 = g G Greek_gamma Greek_GAMMA
71 ! U2103 is degrees Celsius
72 keycode 43 = h H degree U2103
73 ! U062A is Arabic "teh", looks like a smiley face :)
74 keycode 44 = j J j U062A
75 ! U062A is Arabic "teh with ring", looks like a goofey face :p
76 keycode 45 = k K Greek_kappa U067C
77 ! U0629 is Arabic "teh marbuta", looks like a surprised face :o
78 keycode 46 = l L Greek_lambda U0629
79 ! U2026 is an ellipsis
80 keycode 47 = semicolon colon U2026
81 keycode 48 = apostrophe quotedbl
82 ! U223C is the tilde operator
83 keycode 49 = grave asciitilde U223C approximate
85 ! U2261 is identical to (three-bar equals)
86 keycode 51 = backslash bar U2261
87 ! U2115 is the set of all natural numbers, U2124 is the set of integers
88 keycode 52 = z Z U2115 U2124
89 keycode 53 = x X Greek_chi Greek_xi
90 keycode 54 = c C Greek_chi
91 keycode 55 = v V Greek_nu
92 keycode 56 = b B Greek_beta
93 keycode 57 = n N Greek_DELTA nabla
94 ! U00B5 is the micro sign (different codepoint from mu (U03BC))
95 ! U2014 is the em-dash (parenthetical seperator)
96 keycode 58 = m M U00B5 U2014
98 ! includedin = 'subset of'
99 ! includes = 'superset of'
100 ! U2131 is the Fourier transform
101 ! U2112 is the Laplace transform
102 keycode 59 = comma less U2131 U2112
104 ! U27E8 is the mathematical left angle bracket (bra)
105 ! U27E9 is the mathematical right angle bracket (ket)
106 keycode 60 = period greater includes U22C5
107 keycode 61 = slash question rightarrow questiondown
108 ! U00A0 is a no-break space
109 keycode 65 = space space U00A0 U00A0