1#!/bin/keymap -l
2#
3#  Contributed by: Daniel Bostwick
4#
5#
6#       Raw key numbering for 101 Dvorak keyboard...
7#                                                                                        [sys]       [brk]
8#                                                                                         0x7e        0x7f
9# [esc]       [ f1] [ f2] [ f3] [ f4] [ f5] [ f6] [ f7] [ f8] [ f9] [f10] [f11] [f12]    [prn] [scr] [pau]
10#  0x01        0x02  0x03  0x04  0x05  0x06  0x07  0x08  0x09  0x0a  0x0b  0x0c  0x0d     0x0e  0x0f  0x10     K E Y P A D   K E Y S
11#
12# [ ` ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 0 ] [ [ ] [ ] ] [bck]    [ins] [hme] [pup]    [num] [ / ] [ * ] [ - ]
13#  0x11  0x12  0x13  0x14  0x15  0x16  0x17  0x18  0x19  0x1a  0x1b  0x1c  0x1d  0x1e     0x1f  0x20  0x21     0x22  0x23  0x24  0x25
14#
15# [tab] [ ' ] [ , ] [ . ] [ p ] [ y ] [ f ] [ g ] [ c ] [ r ] [ l ] [ / ] [ = ] [ \ ]    [del] [end] [pdn]    [ 7 ] [ 8 ] [ 9 ] [ + ]
16#  0x26  0x27  0x28  0x29  0x2a  0x2b  0x2c  0x2d  0x2e  0x2f  0x30  0x31  0x32  0x33     0x34  0x35  0x36     0x37  0x38  0x39  0x3a
17#
18# [cap] [ a ] [ o ] [ e ] [ u ] [ i ] [ d ] [ h ] [ t ] [ n ] [ s ] [ - ] [  enter  ]                         [ 4 ] [ 5 ] [ 6 ]
19#  0x3b  0x3c  0x3d  0x3e  0x3f  0x40  0x41  0x42  0x43  0x44  0x45  0x46     0x47                             0x48  0x49  0x4a
20#
21# [shift]     [ ; ] [ q ] [ j ] [ k ] [ x ] [ b ] [ m ] [ w ] [ v ] [ z ]     [shift]          [ up]          [ 1 ] [ 2 ] [ 3 ] [ent]
22#   0x4b       0x4c  0x4d  0x4e  0x4f  0x50  0x51  0x52  0x53  0x54  0x55       0x56            0x57           0x58  0x59  0x5a  0x5b
23#
24# [ctr]             [cmd]             [  space  ]             [cmd]             [ctr]    [lft] [dwn] [rgt]    [ 0 ] [ . ]
25#  0x5c              0x5d                 0x5e                 0x5f              0x60     0x61  0x62  0x63     0x64  0x65
26#
27#       NOTE: On a Microsoft Natural Keyboard:
28#                       left option  = 0x66
29#                       right option = 0x67
30#                       menu key     = 0x68
31#       NOTE: On an Apple Extended Keyboard:
32#                       left option  = 0x66
33#                       right option = 0x67
34#                       keypad '='   = 0x6a
35#                       power key    = 0x6b
36Version = 3
37CapsLock = 0x3b
38ScrollLock = 0x0f
39NumLock = 0x22
40LShift = 0x4b
41RShift = 0x56
42LCommand = 0x5d
43RCommand = 0x5f
44LControl = 0x5c
45RControl = 0x60
46LOption = 0x66
47ROption = 0x67
48Menu = 0x68
49#
50# Lock settings
51# To set NumLock, do the following:
52#   LockSettings = NumLock
53#
54# To set everything, do the following:
55#   LockSettings = CapsLock NumLock ScrollLock
56#
57LockSettings = 
58# Legend:
59#   n = Normal
60#   s = Shift
61#   c = Control
62#   C = CapsLock
63#   o = Option
64# Key      n        s        c        o        os       C        Cs       Co       Cos     
65Key 0x00 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
66Key 0x01 = 0x1b     0x1b     0x1b     0x1b     0x1b     0x1b     0x1b     0x1b     0x1b     
67Key 0x02 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
68Key 0x03 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
69Key 0x04 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
70Key 0x05 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
71Key 0x06 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
72Key 0x07 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
73Key 0x08 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
74Key 0x09 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
75Key 0x0a = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
76Key 0x0b = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
77Key 0x0c = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
78Key 0x0d = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
79Key 0x0e = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
80Key 0x0f = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
81Key 0x10 = 0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     0x10     
82Key 0x11 = '`'      '~'      ''       ' '      ''       '`'      '~'      ' '      ''       
83Key 0x12 = '1'      '!'      ''       ' '      ''       '1'      '!'      ' '      ''       
84Key 0x13 = '2'      '@'      0x00     ' '      ''       '2'      '@'      ' '      ''       
85Key 0x14 = '3'      '#'      ''       ' '      ''       '3'      '#'      ' '      ''       
86Key 0x15 = '4'      '$'      ''       ' '      ''       '4'      '$'      ' '      ''       
87Key 0x16 = '5'      '%'      ''       ' '      ''       '5'      '%'      ' '      ''       
88Key 0x17 = '6'      '^'      0x1e     ' '      ''       '6'      '^'      ' '      ''       
89Key 0x18 = '7'      '&'      ''       ' '      ''       '7'      '&'      ' '      ''       
90Key 0x19 = '8'      '*'      ''       ' '      ''       '8'      '*'      ' '      ''       
91Key 0x1a = '9'      '('      ''       ' '      ''       '9'      '('      ' '      ''       
92Key 0x1b = '0'      ')'      ''       ' '      ''       '0'      ')'      ' '      ''       
93Key 0x1c = '['      '{'      0x1b     ' '      ''       '['      '{'      ' '      ''       
94Key 0x1d = ']'      '}'      0x1d     ' '      ''       ']'      '}'      ' '      ''       
95Key 0x1e = 0x08     0x08     0x7f     0x08     0x08     0x08     0x08     0x08     0x08     
96Key 0x1f = 0x05     0x05     0x05     0x05     0x05     0x05     0x05     0x05     0x05     
97Key 0x20 = 0x01     0x01     0x01     0x01     0x01     0x01     0x01     0x01     0x01     
98Key 0x21 = 0x0b     0x0b     0x0b     0x0b     0x0b     0x0b     0x0b     0x0b     0x0b     
99Key 0x22 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
100Key 0x23 = '/'      '/'      '/'      '/'      '/'      '/'      '/'      '/'      '/'      
101Key 0x24 = '*'      '*'      '*'      '*'      '*'      '*'      '*'      '*'      '*'      
102Key 0x25 = '-'      '-'      '-'      '-'      '-'      '-'      '-'      '-'      '-'      
103Key 0x26 = 0x09     0x09     0x09     0x09     0x09     0x09     0x09     0x09     0x09     
104Key 0x27 = '\''     '"'      ''       ' '      ''       '\''     '"'      ' '      ''       
105Key 0x28 = ','      '<'      ''       ' '      ''       ','      '<'      ' '      ''       
106Key 0x29 = '.'      '>'      ''       ' '      ''       '.'      '>'      ' '      ''       
107Key 0x2a = 'p'      'P'      0x10     ' '      ''       'P'      'p'      ' '      ''       
108Key 0x2b = 'y'      'Y'      0x19     ' '      ''       'Y'      'y'      ' '      ''       
109Key 0x2c = 'f'      'F'      0x06     ' '      ''       'F'      'f'      ' '      ''       
110Key 0x2d = 'g'      'G'      0x07     ' '      ''       'G'      'g'      ' '      ''       
111Key 0x2e = 'c'      'C'      0x03     ' '      ''       'C'      'c'      ' '      ''       
112Key 0x2f = 'r'      'R'      0x12     ' '      ''       'R'      'r'      ' '      ''       
113Key 0x30 = 'l'      'L'      0x0c     ' '      ''       'L'      'l'      ' '      ''       
114Key 0x31 = '/'      '?'      ''       ' '      ''       '/'      '?'      ' '      ''       
115Key 0x32 = '='      '+'      ''       ' '      ''       '='      '+'      ' '      ''       
116Key 0x33 = '\\'     '|'      0x1c     ' '      ''       '\\'     '|'      ' '      ''       
117Key 0x34 = 0x7f     0x7f     0x7f     0x7f     0x7f     0x7f     0x7f     0x7f     0x7f     
118Key 0x35 = 0x04     0x04     0x04     0x04     0x04     0x04     0x04     0x04     0x04     
119Key 0x36 = 0x0c     0x0c     0x0c     0x0c     0x0c     0x0c     0x0c     0x0c     0x0c     
120Key 0x37 = 0x01     '7'      0x01     0x01     '7'      0x01     '7'      0x01     '7'      
121Key 0x38 = 0x1e     '8'      0x1e     0x1e     '8'      0x1e     '8'      0x1e     '8'      
122Key 0x39 = 0x0b     '9'      0x0b     0x0b     '9'      0x0b     '9'      0x0b     '9'      
123Key 0x3a = '+'      '+'      '+'      '+'      '+'      '+'      '+'      '+'      '+'      
124Key 0x3b = ''       ''       ''       ''       ''       ''       ''       ''       ''       
125Key 0x3c = 'a'      'A'      0x01     ' '      ''       'A'      'a'      ' '      ''       
126Key 0x3d = 'o'      'O'      0x0f     ' '      ''       'O'      'o'      ' '      ''       
127Key 0x3e = 'e'      'E'      0x05     ' '      ''       'E'      'e'      ' '      ''       
128Key 0x3f = 'u'      'U'      0x15     ' '      ''       'U'      'u'      ' '      ''       
129Key 0x40 = 'i'      'I'      0x09     ' '      ''       'I'      'i'      ' '      ''       
130Key 0x41 = 'd'      'D'      0x04     ' '      ''       'D'      'd'      ' '      ''       
131Key 0x42 = 'h'      'H'      0x08     ' '      ''       'H'      'h'      ' '      ''       
132Key 0x43 = 't'      'T'      0x14     ' '      ''       'T'      't'      ' '      ''       
133Key 0x44 = 'n'      'N'      0x0e     ' '      ''       'N'      'n'      ' '      ''       
134Key 0x45 = 's'      'S'      0x13     ' '      ''       'S'      's'      ' '      ''       
135Key 0x46 = '-'      '_'      0x1f     ' '      ''       '-'      '_'      ' '      ''       
136Key 0x47 = 0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     
137Key 0x48 = 0x1c     '4'      0x1c     0x1c     '4'      0x1c     '4'      0x1c     '4'      
138Key 0x49 = ''       '5'      ''       ''       '5'      ''       '5'      ''       '5'      
139Key 0x4a = 0x1d     '6'      0x1d     0x1d     '6'      0x1d     '6'      0x1d     '6'      
140Key 0x4b = ''       ''       ''       ''       ''       ''       ''       ''       ''       
141Key 0x4c = ';'      ':'      ''       ' '      ''       ';'      ':'      ' '      ''       
142Key 0x4d = 'q'      'Q'      0x11     ' '      ''       'Q'      'q'      ' '      ''       
143Key 0x4e = 'j'      'J'      0x0a     ' '      ''       'J'      'j'      ' '      ''       
144Key 0x4f = 'k'      'K'      0x0b     ' '      ''       'K'      'k'      ' '      ''       
145Key 0x50 = 'x'      'X'      0x18     ' '      ''       'X'      'x'      ' '      ''       
146Key 0x51 = 'b'      'B'      0x02     ' '      ''       'B'      'b'      ' '      ''       
147Key 0x52 = 'm'      'M'      0x0d     ' '      ''       'M'      'm'      ' '      ''       
148Key 0x53 = 'w'      'W'      0x17     ' '      ''       'W'      'w'      ' '      ''       
149Key 0x54 = 'v'      'V'      0x16     ' '      ''       'V'      'v'      ' '      ''       
150Key 0x55 = 'z'      'Z'      0x1a     ' '      ''       'Z'      'z'      ' '      ''       
151Key 0x56 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
152Key 0x57 = 0x1e     0x1e     0x1e     0x1e     0x1e     0x1e     0x1e     0x1e     0x1e     
153Key 0x58 = 0x04     '1'      0x04     0x04     '1'      0x04     '1'      0x04     '1'      
154Key 0x59 = 0x1f     '2'      0x1f     0x1f     '2'      0x1f     '2'      0x1f     '2'      
155Key 0x5a = 0x0c     '3'      0x0c     0x0c     '3'      0x0c     '3'      0x0c     '3'      
156Key 0x5b = 0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     0x0a     
157Key 0x5c = ''       ''       ''       ''       ''       ''       ''       ''       ''       
158Key 0x5d = ''       ''       ''       ''       ''       ''       ''       ''       ''       
159Key 0x5e = ' '      ' '      0x00     ' '      ' '      ' '      ' '      ' '      ' '      
160Key 0x5f = ''       ''       ''       ''       ''       ''       ''       ''       ''       
161Key 0x60 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
162Key 0x61 = 0x1c     0x1c     0x1c     0x1c     0x1c     0x1c     0x1c     0x1c     0x1c     
163Key 0x62 = 0x1f     0x1f     0x1f     0x1f     0x1f     0x1f     0x1f     0x1f     0x1f     
164Key 0x63 = 0x1d     0x1d     0x1d     0x1d     0x1d     0x1d     0x1d     0x1d     0x1d     
165Key 0x64 = 0x05     '0'      0x05     0x05     '0'      0x05     '0'      0x05     '0'      
166Key 0x65 = 0x7f     '.'      0x7f     0x7f     '.'      0x7f     '.'      0x7f     '.'      
167Key 0x66 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
168Key 0x67 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
169Key 0x68 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
170Key 0x69 = '\\'     '|'      0x1c     ' '      ''       '\\'     '|'      ' '      ''       
171Key 0x6a = ''       ''       ''       ''       ''       ''       ''       ''       ''       
172Key 0x6b = ''       ''       ''       ''       ''       ''       ''       ''       ''       
173Key 0x6c = ''       ''       ''       ''       ''       ''       ''       ''       ''       
174Key 0x6d = ''       ''       ''       ''       ''       ''       ''       ''       ''       
175Key 0x6e = ''       ''       ''       ''       ''       ''       ''       ''       ''       
176Key 0x6f = ''       ''       ''       ''       ''       ''       ''       ''       ''       
177Key 0x70 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
178Key 0x71 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
179Key 0x72 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
180Key 0x73 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
181Key 0x74 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
182Key 0x75 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
183Key 0x76 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
184Key 0x77 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
185Key 0x78 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
186Key 0x79 = ''       ''       ''       ''       ''       ''       ''       ''       ''       
187Key 0x7a = ''       ''       ''       ''       ''       ''       ''       ''       ''       
188Key 0x7b = ''       ''       ''       ''       ''       ''       ''       ''       ''       
189Key 0x7c = ''       ''       ''       ''       ''       ''       ''       ''       ''       
190Key 0x7d = ''       ''       ''       ''       ''       ''       ''       ''       ''       
191Key 0x7e = ''       ''       ''       ''       ''       ''       ''       ''       ''       
192Key 0x7f = ''       ''       ''       ''       ''       ''       ''       ''       ''       
193Acute ' '       = '\''     
194Acute 'A'       = 0xc381   
195Acute 'E'       = 0xc389   
196Acute 'I'       = 0xc38d   
197Acute 'O'       = 0xc393   
198Acute 'U'       = 0xc39a   
199Acute 'Y'       = 0xc39d   
200Acute 'a'       = 0xc3a1   
201Acute 'e'       = 0xc3a9   
202Acute 'i'       = 0xc3ad   
203Acute 'o'       = 0xc3b3   
204Acute 'u'       = 0xc3ba   
205Acute 'y'       = 0xc3bd   
206Acute ''        = ''       
207Acute ''        = ''       
208Acute ''        = ''       
209AcuteTab = 
210Grave ' '       = '`'      
211Grave 'A'       = 0xc380   
212Grave 'E'       = 0xc388   
213Grave 'I'       = 0xc38c   
214Grave 'O'       = 0xc392   
215Grave 'U'       = 0xc399   
216Grave 'a'       = 0xc3a0   
217Grave 'e'       = 0xc3a8   
218Grave 'i'       = 0xc3ac   
219Grave 'o'       = 0xc3b2   
220Grave 'u'       = 0xc3b9   
221Grave ''        = ''       
222Grave ''        = ''       
223Grave ''        = ''       
224Grave ''        = ''       
225Grave ''        = ''       
226GraveTab = 
227Circumflex ' '       = '^'      
228Circumflex 'A'       = 0xc382   
229Circumflex 'E'       = 0xc38a   
230Circumflex 'I'       = 0xc38e   
231Circumflex 'O'       = 0xc394   
232Circumflex 'U'       = 0xc39b   
233Circumflex 'a'       = 0xc3a2   
234Circumflex 'e'       = 0xc3aa   
235Circumflex 'i'       = 0xc3ae   
236Circumflex 'o'       = 0xc3b4   
237Circumflex 'u'       = 0xc3bb   
238Circumflex ''        = ''       
239Circumflex ''        = ''       
240Circumflex ''        = ''       
241Circumflex ''        = ''       
242Circumflex ''        = ''       
243CircumflexTab = 
244Diaeresis ' '       = '"'      
245Diaeresis 'A'       = 0xc384   
246Diaeresis 'E'       = 0xc38b   
247Diaeresis 'I'       = 0xc38f   
248Diaeresis 'O'       = 0xc396   
249Diaeresis 'U'       = 0xc39c   
250Diaeresis 'Y'       = 0xc5b8   
251Diaeresis 'a'       = 0xc3a4   
252Diaeresis 'e'       = 0xc3ab   
253Diaeresis 'i'       = 0xc3af   
254Diaeresis 'o'       = 0xc3b6   
255Diaeresis 'u'       = 0xc3bc   
256Diaeresis 'y'       = 0xc3bf   
257Diaeresis ''        = ''       
258Diaeresis ''        = ''       
259Diaeresis ''        = ''       
260DiaeresisTab = 
261Tilde ' '       = '~'      
262Tilde 'A'       = 0xc383   
263Tilde 'O'       = 0xc395   
264Tilde 'N'       = 0xc391   
265Tilde 'a'       = 0xc3a3   
266Tilde 'o'       = 0xc3b5   
267Tilde 'n'       = 0xc3b1   
268Tilde ''        = ''       
269Tilde ''        = ''       
270Tilde ''        = ''       
271Tilde ''        = ''       
272Tilde ''        = ''       
273Tilde ''        = ''       
274Tilde ''        = ''       
275Tilde ''        = ''       
276Tilde ''        = ''       
277TildeTab = 
278