1 // $XFree86: xc/programs/xkbcomp/geometry/macintosh,v 1.3 2003/08/09 14:30:47 pascal Exp $
3 // Some modifications (<eqdar@castalie.org>) :
4 // - Added a <LSGT> key
5 // - Fixed the shape of the <RTRN> key
6 // - Moved <BKSL> to the 'AC' row
7 // - Added a special Macintosh sysctl key
8 // - Minor changes (Function keys shape, LED position...)
11 // - Mail address above is no longer valid
12 // - Changed {L,R}MTA to {L,R}WIN, which are defined
13 // 2005/10 -- Simon Vallet <svallet@gmail.com>
15 default xkb_geometry "macintosh" {
17 description= "Apple Extended Keyboard II";
21 shape.cornerRadius= 1;
22 shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
23 shape "TLDE" { { [ 23,18] }, { [2,1], [ 21,17] } };
24 shape "BKSP" { { [ 33,18] }, { [2,1], [ 31,17] } };
25 shape "TAB" { { [ 33,18] }, { [2,1], [ 31,17] } };
27 { [0,0],[23,0],[23,37],[4,37],[4,18],[0,18] },
28 { [2,1],[21,1],[21,36],[6,36],[6,17],[2,17] } };
29 shape "CAPS" { { [ 37,18] }, { [2,1], [ 35,17] } };
30 shape "LCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
31 shape "LALT" { { [ 22,18] }, { [2,1], [ 20,17] } };
32 shape "LMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
33 shape "LFSH" { { [ 28,18] }, { [2,1], [ 26,17] } };
34 shape "RCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
35 shape "RALT" { { [ 22,18] }, { [2,1], [ 20,17] } };
36 shape "RMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
37 shape "RTSH" { { [ 47,18] }, { [2,1], [ 45,17] } };
38 shape "SPCE" { { [123,18] }, { [2,1], [121,17] } };
39 shape "KP0" { { [ 37,18] }, { [2,1], [ 35,17] } };
40 shape "KPEN" { { [ 18,37] }, { [2,1], [ 16,36] } };
41 // Macintosh keyboards have a special sysctl key at the top right
43 { [ 0,0], [ 18,0], [ 18,18], [ 0,18] },
44 { [ 1,1], [ 17,1], [ 17,17], [ 1,17] },
45 { [ 8,5], [ 8,12], [ 2,9] } };
47 shape "LEDS" { cornerRadius = 0, { [ 55,19] } };
48 shape "LED" { cornerRadius = 0, { [ 8, 2] } };
56 indicator.onColor= "green";
57 indicator.offColor= "green30";
59 indicator.shape= "LED";
60 indicator "NumLock" { left = 381; };
61 indicator "CapsLock" { left = 398; };
62 indicator "ScrollLock" { left = 415; };
65 text "NumLockLabel" { left = 381; text = "Num\nLock"; };
66 text "CapsLockLabel" { left = 398; text = "Caps\nLock"; };
67 text "ScrollLockLabel" { left = 415; text = "Scroll\nLock"; };
79 { <FK01>, 20 }, <FK02>, <FK03>, <FK04>,
80 { <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
81 { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
82 { <PRSC>, 10 }, <SCLK>, <PAUS>,
83 // This is the sysctl key on macintosh keyboards
84 // keycode is 222 with a 4.21 kernel, which is <I5E>
88 }; // End of "Function" section
94 keys { { <TLDE>, "TLDE" }, <AE01>, <AE02>, <AE03>,
95 <AE04>, <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
96 <AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
101 keys { { <TAB>, "TAB" }, <AD01>, <AD02>, <AD03>,
102 <AD04>, <AD05>, <AD06>, <AD07>, <AD08>, <AD09>,
103 <AD10>, <AD11>, <AD12>, { <RTRN>, "RTRN" }
108 keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>,
109 <AC04>, <AC05>, <AC06>, <AC07>, <AC08>, <AC09>,
110 <AC10>, <AC11>, <BKSL>
115 keys { { <LFSH>, "LFSH" }, <LSGT>, <AB01>, <AB02>,
116 <AB03>, <AB04>, <AB05>, <AB06>, <AB07>, <AB08>,
117 <AB09>, <AB10>, { <RTSH>, "RTSH" }
122 keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
126 { <RALT>, "RALT" }, { <RCTL>, "RCTL" }
129 }; // End of "Alpha" section
136 keys { <INS>, <HOME>, <PGUP> };
140 keys { <DELE>, <END>, <PGDN> };
149 keys { <LEFT>, <DOWN>, <RGHT> };
151 }; // End of "Editing" section
153 // Begin of "Keypad" section
159 keys { <NMLK>, <KPEQ>, <KPDV>, <KPMU> };
163 keys { <KP7>, <KP8>, <KP9>, <KPSU> };
167 keys { <KP4>, <KP5>, <KP6>, <KPAD> };
171 keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN" } };
175 keys { { <KP0>, "KP0" }, <KPDL> };
177 }; // End of "Keypad" section
179 }; // End of "default" geometry
182 // This section describes the geometry of the "Apple Pro" keyboard
183 // included with NewWorld desktop machines
185 // It adds four new keysyms, labeled SDDN, SDUP, SDNO, EJCT.
187 // 2005/10 -- Simon Vallet <svallet@gmail.com>
189 xkb_geometry "applepro" {
191 description= "Apple Pro Keyboard";
195 shape.cornerRadius= 1;
196 shape "NORM" { { [ 18, 18] }, { [2, 1], [ 16, 15] } };
197 shape "FUNC" { { [ 18, 21] }, { [2, 1], [ 16, 16] } };
198 shape "BKSP" { { [ 38, 18] }, { [2, 1], [ 36, 15] } };
199 shape "TAB" { { [ 29, 18] }, { [2, 1], [ 26, 15] } };
200 shape "LFSH" { { [ 28, 18] }, { [2, 1], [ 26, 15] } };
201 shape "RTSH" { { [ 47, 18] }, { [2, 1], [ 45, 15] } };
204 { [0,0],[27,0],[27,37],[4,37],[4,18],[0,18] },
205 { [2,1],[25,1],[25,34],[6,34],[6,15],[2,15] } };
207 shape "CAPS" { { [ 32, 18] }, { [2, 1], [ 26, 15] } };
208 shape "LCTL" { { [ 28, 20] }, { [2, 1], [ 26, 17] } };
209 shape "RCTL" { { [ 28, 20] }, { [2, 1], [ 26, 17] } };
210 shape "LALT" { { [ 23, 20] }, { [2, 1], [ 21, 17] } };
211 shape "RALT" { { [ 23, 20] }, { [2, 1], [ 21, 17] } };
212 shape "LMTA" { { [ 28, 20] }, { [2, 1], [ 26, 17] } };
213 shape "RMTA" { { [ 28, 20] }, { [2, 1], [ 26, 17] } };
214 shape "SPCE" { { [121, 20] }, { [3, 1], [118, 17] } };
215 shape "BOTM" { { [ 18, 20] }, { [2, 1], [ 16, 17] } };
217 shape "KP0" { { [ 37, 20] }, { [2, 1], [ 35, 17] } };
218 shape "KPEN" { { [ 18, 39] }, { [2, 1], [ 16, 36] } };
231 { <FK01>, 14 }, <FK02>, <FK03>, <FK04>,
232 { <FK05>, 14 }, <FK06>, <FK07>, <FK08>,
233 { <FK09>, 14 }, <FK10>, <FK11>, <FK12>,
234 { <PRSC>, 11 }, <SCLK>, <PAUS>,
235 { <SDDN>, 11 }, <SDUP>, <SDNO>, <EJCT>
238 }; // End of "Function" section
245 keys { <TLDE>, <AE01>, <AE02>, <AE03>,
246 <AE04>, <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
247 <AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
252 keys { { <TAB>, "TAB" }, <AD01>, <AD02>, <AD03>,
253 <AD04>, <AD05>, <AD06>, <AD07>, <AD08>, <AD09>,
254 <AD10>, <AD11>, <AD12>, { <RTRN>, "RTRN" }
259 keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>,
260 <AC04>, <AC05>, <AC06>, <AC07>, <AC08>, <AC09>,
261 <AC10>, <AC11>, <BKSL>
266 keys { { <LFSH>, "LFSH" }, <LSGT>, <AB01>, <AB02>,
267 <AB03>, <AB04>, <AB05>, <AB06>, <AB07>, <AB08>,
268 <AB09>, <AB10>, { <RTSH>, "RTSH" }
273 keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
277 { <RALT>, "RALT" }, { <RCTL>, "RCTL" }
280 }; // End of "Alpha" section
287 keys { <INS>, <HOME>, <PGUP> };
291 keys { <DELE>, <END>, <PGDN> };
301 keys { <LEFT>, <DOWN>, <RGHT> };
303 }; // End of "Editing" section
305 // Begin of "Keypad" section
311 keys { <NMLK>, <KPEQ>, <KPDV>, <KPMU> };
315 keys { <KP7>, <KP8>, <KP9>, <KPSU> };
319 keys { <KP4>, <KP5>, <KP6>, <KPAD> };
323 keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN" } };
327 keys { { <KP0>, "KP0" }, { <KPDL>, "BOTM" } };
329 }; // End of "Keypad" section
331 }; // End of "applepro" geometry
333 xkb_geometry "macbook78" {
335 description= "Apple Laptop 78-key (US)";
339 shape.cornerRadius= 0;
340 shape "ESC" { { [ 21,9] }, cornerRadius=1, { [0,1], [ 19,8] } };
341 shape "FUNC" { { [ 18,9] }, cornerRadius=1, { [2,1], [ 16,8] } };
342 shape "EJCT" { { [ 20,9] }, cornerRadius=1, { [2,1], [ 20,8] } };
343 shape "DEGR" { { [ 16,18] }, cornerRadius=1, { [0,2], [ 14,16] } };
344 shape "NORM" { { [ 18,18] }, cornerRadius=1, { [2,2], [ 16,16] } };
345 shape "BKSP" { { [ 25,18] }, cornerRadius=1, { [2,2], [ 25,16] } };
346 shape "TABK" { { [ 24,18] }, cornerRadius=1, { [0,2], [ 22,16] } };
347 shape "BKSL" { { [ 17,18] }, cornerRadius=1, { [2,2], [17,16] } };
348 shape "RTRN" { { [ 31,18] }, cornerRadius=1, { [2,2], [31,16] } };
349 shape "CAPS" { { [ 29,18] }, cornerRadius=1, { [0,2], [ 27,16] } };
350 shape "LFSH" { { [ 40,18] }, cornerRadius=1, { [0,2], [ 38,16] } };
351 shape "RTSH" { { [ 39,18] }, cornerRadius=1, { [2,2], [ 39,16] } };
352 shape "APPL" { { [ 23,18] }, cornerRadius=1, { [2,2], [ 21,16] } };
353 shape "SPCE" { { [ 94,18] }, cornerRadius=1, { [2,2], [ 92,16] } };
354 shape "ARRO" { { [ 17,9] }, cornerRadius=1, { [2,1], [ 15,8] } };
356 shape "LED" { cornerRadius= 1, { [ 2, 2 ] } };
358 indicator.onColor= "green";
359 indicator.offColor= "gray";
360 indicator.shape= "LED";
361 indicator "Num Lock" { top=4; left= 119; };
362 indicator "Caps Lock" { top=53; left= 4; };
372 keys { {<ESC>, "ESC" },
373 <FK01>, <FK02>, <FK03>, <FK04>,
374 <FK05>, <FK06>, <FK07>, <FK08>,
375 <FK09>, <FK10>, <FK11>, <FK12>,
379 }; // End of "Function" section
386 keys { {<TLDE>, "DEGR"},
387 <AE01>, <AE02>, <AE03>, <AE04>,
388 <AE05>, <AE06>, <AE07>, <AE08>,
389 <AE09>, <AE10>, <AE11>, <AE12>,
395 keys { { <TAB>, "TABK"},
396 <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
397 <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
404 keys { { <CAPS>, "CAPS" },
405 <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
406 <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
413 keys { { <LFSH>, "LFSH"},
414 <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
415 <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
421 keys { {<FN>, "DEGR"},
430 }; // End of "Alpha" section
443 keys { <LEFT>, <DOWN>, <RGHT> };
445 }; // End of "Editing" section
447 alias <AC00> = <CAPS>;
448 alias <AA00> = <LCTL>;
452 xkb_geometry "macbook79" {
454 description= "Apple Laptop 79-key (Intl)";
458 shape.cornerRadius= 0;
459 shape "ESC" { { [ 21,9] }, cornerRadius=1, { [0,1], [ 19,8] } };
460 shape "FUNC" { { [ 18,9] }, cornerRadius=1, { [2,1], [ 16,8] } };
461 shape "EJCT" { { [ 20,9] }, cornerRadius=1, { [2,1], [ 20,8] } };
462 shape "DEGR" { { [ 16,18] }, cornerRadius=1, { [0,2], [ 14,16] } };
463 shape "NORM" { { [ 18,18] }, cornerRadius=1, { [2,2], [ 16,16] } };
464 shape "BKSP" { { [ 25,18] }, cornerRadius=1, { [2,2], [ 25,16] } };
465 shape "TABK" { { [ 24,18] }, cornerRadius=1, { [0,2], [ 22,16] } };
466 shape "RTRN" { { [ 0,0], [17,0], [17,37], [5,37], [5, 18], [0,18], [0,0] },
468 { [ 2,2], [15,2], [15,35], [7,35], [7, 16], [2,16] }
470 shape "CAPS" { { [ 29,18] }, cornerRadius=1, { [0,2], [ 27,16] } };
471 shape "LFSH" { { [ 21,18] }, cornerRadius=1, { [0,2], [ 19,16] } };
472 shape "RTSH" { { [ 39,18] }, cornerRadius=1, { [2,2], [ 39,16] } };
473 shape "APPL" { { [ 23,18] }, cornerRadius=1, { [2,2], [ 21,16] } };
474 shape "SPCE" { { [ 94,18] }, cornerRadius=1, { [2,2], [ 92,16] } };
475 shape "ARRO" { { [ 17,9] }, cornerRadius=1, { [2,1], [ 15,8] } };
477 shape "LED" { cornerRadius= 1, { [ 2, 2 ] } };
479 indicator.onColor= "green";
480 indicator.offColor= "gray";
481 indicator.shape= "LED";
482 indicator "Num Lock" { top=4; left= 119; };
483 indicator "Caps Lock" { top=53; left= 4; };
493 keys { {<ESC>, "ESC" },
494 <FK01>, <FK02>, <FK03>, <FK04>,
495 <FK05>, <FK06>, <FK07>, <FK08>,
496 <FK09>, <FK10>, <FK11>, <FK12>,
500 }; // End of "Function" section
507 keys { {<TLDE>, "DEGR"},
508 <AE01>, <AE02>, <AE03>, <AE04>,
509 <AE05>, <AE06>, <AE07>, <AE08>,
510 <AE09>, <AE10>, <AE11>, <AE12>,
516 keys { { <TAB>, "TABK"},
517 <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
518 <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
519 <AD11>, <AD12>, { <RTRN>, "RTRN" }
524 keys { { <CAPS>, "CAPS" },
525 <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
526 <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
532 keys { { <LFSH>, "LFSH"},
533 <LSGT>, <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
534 <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
540 keys { {<FN>, "DEGR"},
549 }; // End of "Alpha" section
562 keys { <LEFT>, <DOWN>, <RGHT> };
564 }; // End of "Editing" section
566 alias <AC00> = <CAPS>;
567 alias <AA00> = <LCTL>;
569 }; // End of "default" geometry