| 1 |
// $XFree86: xc/programs/xkbcomp/geometry/macintosh,v 1.3 2003/08/09 14:30:47 pascal Exp $
|
| 2 |
//
|
| 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...)
|
| 9 |
|
| 10 |
default xkb_geometry "macintosh" {
|
| 11 |
|
| 12 |
description= "Apple Extended Keyboard II";
|
| 13 |
width = 475;
|
| 14 |
height = 194;
|
| 15 |
|
| 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] } };
|
| 21 |
shape "RTRN" {
|
| 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
|
| 37 |
shape "AAPL" {
|
| 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] } };
|
| 41 |
|
| 42 |
shape "LEDS" { cornerRadius = 0, { [ 55,19] } };
|
| 43 |
shape "LED" { cornerRadius = 0, { [ 8, 2] } };
|
| 44 |
|
| 45 |
solid "LedPanel" {
|
| 46 |
shape= "LEDS";
|
| 47 |
top = 48;
|
| 48 |
left = 378;
|
| 49 |
};
|
| 50 |
|
| 51 |
indicator.onColor= "green";
|
| 52 |
indicator.offColor= "green30";
|
| 53 |
indicator.top = 50;
|
| 54 |
indicator.shape= "LED";
|
| 55 |
indicator "NumLock" { left = 381; };
|
| 56 |
indicator "CapsLock" { left = 398; };
|
| 57 |
indicator "ScrollLock" { left = 415; };
|
| 58 |
text.top= 55;
|
| 59 |
text.color= "black";
|
| 60 |
text "NumLockLabel" { left = 381; text = "Num\nLock"; };
|
| 61 |
text "CapsLockLabel" { left = 398; text = "Caps\nLock"; };
|
| 62 |
text "ScrollLockLabel" { left = 415; text = "Scroll\nLock"; };
|
| 63 |
|
| 64 |
section.left= 19;
|
| 65 |
row.left= 1;
|
| 66 |
key.shape= "NORM";
|
| 67 |
key.gap= 1;
|
| 68 |
|
| 69 |
section "Function" {
|
| 70 |
top = 48;
|
| 71 |
row {
|
| 72 |
top= 1;
|
| 73 |
keys { <ESC>,
|
| 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>
|
| 80 |
{ <I5E>, "AAPL", 67 }
|
| 81 |
};
|
| 82 |
};
|
| 83 |
}; // End of "Function" section
|
| 84 |
|
| 85 |
section "Alpha" {
|
| 86 |
top = 87;
|
| 87 |
row {
|
| 88 |
top= 1;
|
| 89 |
keys { { <TLDE>, "TLDE" }, <AE01>, <AE02>, <AE03>,
|
| 90 |
<AE04>, <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
|
| 91 |
<AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
|
| 92 |
};
|
| 93 |
};
|
| 94 |
row {
|
| 95 |
top= 20;
|
| 96 |
keys { { <TAB>, "TAB" }, <AD01>, <AD02>, <AD03>,
|
| 97 |
<AD04>, <AD05>, <AD06>, <AD07>, <AD08>, <AD09>,
|
| 98 |
<AD10>, <AD11>, <AD12>, { <RTRN>, "RTRN" }
|
| 99 |
};
|
| 100 |
};
|
| 101 |
row {
|
| 102 |
top= 39;
|
| 103 |
keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>,
|
| 104 |
<AC04>, <AC05>, <AC06>, <AC07>, <AC08>, <AC09>,
|
| 105 |
<AC10>, <AC11>, <BKSL>
|
| 106 |
};
|
| 107 |
};
|
| 108 |
row {
|
| 109 |
top= 58;
|
| 110 |
keys { { <LFSH>, "LFSH" }, <LSGT>, <AB01>, <AB02>,
|
| 111 |
<AB03>, <AB04>, <AB05>, <AB06>, <AB07>, <AB08>,
|
| 112 |
<AB09>, <AB10>, { <RTSH>, "RTSH" }
|
| 113 |
};
|
| 114 |
};
|
| 115 |
row {
|
| 116 |
top= 77;
|
| 117 |
keys { { <LCTL>, "LCTL" }, { <LALT>, "LALT" },
|
| 118 |
{ <LMTA>, "LMTA" },
|
| 119 |
{ <SPCE>, "SPCE" },
|
| 120 |
{ <RMTA>, "RMTA" },
|
| 121 |
{ <RALT>, "RALT" }, { <RCTL>, "RCTL" }
|
| 122 |
};
|
| 123 |
};
|
| 124 |
}; // End of "Alpha" section
|
| 125 |
|
| 126 |
section "Editing" {
|
| 127 |
top = 87;
|
| 128 |
left = 314;
|
| 129 |
row {
|
| 130 |
top= 1;
|
| 131 |
keys { <INS>, <HOME>, <PGUP> };
|
| 132 |
};
|
| 133 |
row {
|
| 134 |
top= 20;
|
| 135 |
keys { <DELE>, <END>, <PGDN> };
|
| 136 |
};
|
| 137 |
row {
|
| 138 |
top= 58;
|
| 139 |
left= 20;
|
| 140 |
keys { <UP> };
|
| 141 |
};
|
| 142 |
row {
|
| 143 |
top= 77;
|
| 144 |
keys { <LEFT>, <DOWN>, <RGHT> };
|
| 145 |
};
|
| 146 |
}; // End of "Editing" section
|
| 147 |
|
| 148 |
// Begin of "Keypad" section
|
| 149 |
section "Keypad" {
|
| 150 |
top = 87;
|
| 151 |
left = 380;
|
| 152 |
row {
|
| 153 |
top= 1;
|
| 154 |
keys { <NMLK>, <KPEQ>, <KPDV>, <KPMU> };
|
| 155 |
};
|
| 156 |
row {
|
| 157 |
top= 20;
|
| 158 |
keys { <KP7>, <KP8>, <KP9>, <KPSU> };
|
| 159 |
};
|
| 160 |
row {
|
| 161 |
top= 39;
|
| 162 |
keys { <KP4>, <KP5>, <KP6>, <KPAD> };
|
| 163 |
};
|
| 164 |
row {
|
| 165 |
top= 58;
|
| 166 |
keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN" } };
|
| 167 |
};
|
| 168 |
row {
|
| 169 |
top= 77;
|
| 170 |
keys { { <KP0>, "KP0" }, <KPDL> };
|
| 171 |
};
|
| 172 |
}; // End of "Keypad" section
|
| 173 |
|
| 174 |
}; // End of "default" geometry
|