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...)
10 default xkb_geometry "macintosh" {
12 description= "Apple Extended Keyboard II";
16 shape.cornerRadius= 1;
17 shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
18 shape "TLDE" { { [ 23,18] }, { [2,1], [ 21,17] } };
19 shape "BKSP" { { [ 33,18] }, { [2,1], [ 31,17] } };
20 shape "TAB" { { [ 33,18] }, { [2,1], [ 31,17] } };
22 { [0,0],[23,0],[23,37],[4,37],[4,18],[0,18] },
23 { [2,1],[21,1],[21,36],[6,36],[6,17],[2,17] } };
24 shape "CAPS" { { [ 37,18] }, { [2,1], [ 35,17] } };
25 shape "LCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
26 shape "LALT" { { [ 22,18] }, { [2,1], [ 20,17] } };
27 shape "LMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
28 shape "LFSH" { { [ 28,18] }, { [2,1], [ 26,17] } };
29 shape "RCTL" { { [ 28,18] }, { [2,1], [ 26,17] } };
30 shape "RALT" { { [ 22,18] }, { [2,1], [ 20,17] } };
31 shape "RMTA" { { [ 28,18] }, { [2,1], [ 26,17] } };
32 shape "RTSH" { { [ 47,18] }, { [2,1], [ 45,17] } };
33 shape "SPCE" { { [123,18] }, { [2,1], [121,17] } };
34 shape "KP0" { { [ 37,18] }, { [2,1], [ 35,17] } };
35 shape "KPEN" { { [ 18,37] }, { [2,1], [ 16,36] } };
36 // Macintosh keyboards have a special sysctl key at the top right
38 { [ 0,0], [ 18,0], [ 18,18], [ 0,18] },
39 { [ 1,1], [ 17,1], [ 17,17], [ 1,17] },
40 { [ 8,5], [ 8,12], [ 2,9] } };
42 shape "LEDS" { cornerRadius = 0, { [ 55,19] } };
43 shape "LED" { cornerRadius = 0, { [ 8, 2] } };
51 indicator.onColor= "green";
52 indicator.offColor= "green30";
54 indicator.shape= "LED";
55 indicator "NumLock" { left = 381; };
56 indicator "CapsLock" { left = 398; };
57 indicator "ScrollLock" { left = 415; };
60 text "NumLockLabel" { left = 381; text = "Num\nLock"; };
61 text "CapsLockLabel" { left = 398; text = "Caps\nLock"; };
62 text "ScrollLockLabel" { left = 415; text = "Scroll\nLock"; };
74 { <FK01>, 20 }, <FK02>, <FK03>, <FK04>,
75 { <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
76 { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
77 { <PRSC>, 10 }, <SCLK>, <PAUS>,
78 // This is the sysctl key on macintosh keyboards
79 // keycode is 222 with a 4.21 kernel, which is <I5E>
83 }; // End of "Function" section
89 keys { { <TLDE>, "TLDE" }, <AE01>, <AE02>, <AE03>,
90 <AE04>, <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
91 <AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
96 keys { { <TAB>, "TAB" }, <AD01>, <AD02>, <AD03>,
97 <AD04>, <AD05>, <AD06>, <AD07>, <AD08>, <AD09>,
98 <AD10>, <AD11>, <AD12>, { <RTRN>, "RTRN" }
103 keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>,
104 <AC04>, <AC05>, <AC06>, <AC07>, <AC08>, <AC09>,
105 <AC10>, <AC11>, <BKSL>
110 keys { { <LFSH>, "LFSH" }, <LSGT>, <AB01>, <AB02>,
111 <AB03>, <AB04>, <AB05>, <AB06>, <AB07>, <AB08>,
112 <AB09>, <AB10>, { <RTSH>, "RTSH" }
117 keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
121 { <RALT>, "RALT" }, { <RCTL>, "RCTL" }
124 }; // End of "Alpha" section
131 keys { <INS>, <HOME>, <PGUP> };
135 keys { <DELE>, <END>, <PGDN> };
144 keys { <LEFT>, <DOWN>, <RGHT> };
146 }; // End of "Editing" section
148 // Begin of "Keypad" section
154 keys { <NMLK>, <KPEQ>, <KPDV>, <KPMU> };
158 keys { <KP7>, <KP8>, <KP9>, <KPSU> };
162 keys { <KP4>, <KP5>, <KP6>, <KPAD> };
166 keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN" } };
170 keys { { <KP0>, "KP0" }, <KPDL> };
172 }; // End of "Keypad" section
174 }; // End of "default" geometry