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