first feed-in of the layouts. The revolution is coming
[xorg/xkeyboard-config] / geometry / sgi.vndr / indigo
1 // $Xorg: indigo,v 1.3 2000/08/17 19:54:37 cpqbld Exp $
2 //
3 // Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
4 //
5 // Permission to use, copy, modify, and distribute this
6 // software and its documentation for any purpose and without
7 // fee is hereby granted, provided that the above copyright
8 // notice appear in all copies and that both that copyright
9 // notice and this permission notice appear in supporting
10 // documentation, and that the name of Silicon Graphics not be 
11 // used in advertising or publicity pertaining to distribution 
12 // of the software without specific prior written permission.
13 // Silicon Graphics makes no representation about the suitability 
14 // of this software for any purpose. It is provided "as is"
15 // without any express or implied warranty.
16 // 
17 // SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
18 // SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
19 // AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
20 // GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
21 // DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
22 // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
23 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
24 // THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 //
26 // $XFree86$
27 //
28 default xkb_geometry "pc101" {
29
30     // This is an approximate layout for a 101-key (US/ASCII) SGI
31     // keyboard.  I just took a similar layout (101 key PC keyboard)
32     // and adjusted the sizes of a few keys by eye.  I didn't actually
33     // *measure* a real keyboard.
34
35     description= "Silicon Graphics 101-key keyboard";
36
37     width= 472;
38     height= 193;
39
40     shape "EDGE" { cornerRadius= 2, { [ 472, 193 ] } };
41     shape.cornerRadius= 1;
42     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
43     shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };
44     shape "TABK" { { [ 28,18] }, { [2,1], [26,17] } };
45     shape "BKSL" { { [ 27,18] }, { [2,1], [25,17] } };
46     shape "RTRN" { { [ 40,18] }, { [2,1], [37,17] } };
47     shape "CAPS" { { [ 34,18] }, { [2,1], [29,17] } };
48     shape "RTSH" { { [ 49,18] }, { [2,1], [47,17] } };
49     shape "LFSH" { { [ 44,18] }, { [2,1], [42,17] } };
50     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
51     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
52     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
53     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
54     shape "LOGO" { { [ 16,16] } };
55
56     outline "Edges" {
57         top= 0;
58         left= 0;
59         shape= "EDGE";
60     };
61
62     section.left= 19;
63     row.left= 1;
64     key.shape= "NORM";
65     key.gap=  1;
66     section "Function" {
67         top= 50;
68         row {
69             top= 1;
70             keys {      { <ESC>, color="grey20" },
71                         { <FK01>, 19}, <FK02>, <FK03>, <FK04>,
72                         { <FK05>, 11}, <FK06>, <FK07>, <FK08>,
73                         { <FK09>, 11}, <FK10>, <FK11>, <FK12>
74             };
75         };
76     }; // End of "Function" section
77
78     section "Alpha" {
79         top= 83;
80         row {
81             top= 1;
82             keys {      <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
83                         <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
84                         <AE10>, <AE11>, <AE12>,
85                         { <BKSP>, "BKSP", color="grey20" }
86             };
87         };
88         row {
89             top= 20;
90             keys {      { <TAB>, "TABK", color= "grey20" },
91                         <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
92                         <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
93                         <AD11>, <AD12>,
94                         { <BKSL>, "BKSL" }
95             };  
96         };
97         row {
98             top= 39;
99             keys {      { <CAPS>, "CAPS", color="grey20" },
100                         <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
101                         <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
102                         <AC11>, { <RTRN>, "RTRN", color="grey20" }
103             };
104         };
105         row {
106             top= 58;
107             keys {      { <LFSH>, "LFSH", color="grey20" }, 
108                         <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
109                         <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
110                         { <RTSH>, "RTSH", color="grey20" }
111             };
112         };
113         row {
114             top= 77;
115             key.shape= "MODK";
116             key.color= "grey20";
117             keys {      <LCTL>, { <LALT>, 20 },
118                         { <SPCE>, "SPCE",color="white" },
119                         <RALT>, { <RCTL>, 20 }
120             };
121         };
122     }; // End of "Alpha" section
123
124     section "Editing" {
125         top= 50;
126         left= 312;
127         key.color= "grey20";
128         row {
129             top= 1;
130             keys { <PRSC>, <SCLK>, <PAUS> };
131         };
132         row {
133             top= 33;
134             keys { <INS>, <HOME>, <PGUP> };
135         };
136         row {
137             top= 53;
138             keys { <DELE>, <END>, <PGDN> };
139         };
140         row {
141             top= 91;
142             left= 20;
143             keys { <UP> };
144         };
145         row {
146             top= 110;
147             keys { <LEFT>, <DOWN>, <RGHT> };
148         };
149     }; // End of "Editing" section
150
151     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
152     shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
153     solid "LedPanel" {
154         shape= "LEDS";
155         top=  50;
156         left= 377;
157         color= "grey10";
158     };
159     indicator.onColor= "green";
160     indicator.offColor= "green30";
161     indicator.top= 64.5;
162     indicator.shape= "LED";
163     indicator "Num Lock"     { left= 386; };
164     indicator "Caps Lock"    { left= 411; };
165     indicator "Scroll Lock"  { left= 436; };
166     text.top= 52;
167     text.color= "black";
168     text "NumLockLabel"         { left= 382.5; text="Num\nLock"; };
169     text "CapsLockLabel"        { left= 407; text="Caps\nLock"; };
170     text "ScrollLockLabel"      { left= 432; text="Scroll\nLock"; };
171     
172     logo "SGILogoImage"         { 
173         top= 17;
174         left= 22;
175         name= "SGI"; 
176         shape= "LOGO"; 
177     };
178     text "SGILogoText"  {
179         top= 21;
180         left= 40;
181         width= 50;
182         text= "SiliconGraphics";
183         font= "helvetica";
184         slant= "o";
185         weight= "bold";
186         fontWidth= "narrow";
187         fontSize= 24;
188     };
189
190     section "Keypad" {
191         top= 83;
192         left= 376;
193         row {
194             top= 1;
195             key.color= "grey20";
196             keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
197         };
198         row {
199             top= 20;
200             keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color= "grey20" } };
201         };
202         row {
203             top= 39;
204             keys { <KP4>, <KP5>, <KP6> };
205         };
206         row {
207             top= 58;
208             keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color= "grey20" } };
209         };
210         row {
211             top= 77;
212             keys { { <KP0>, "KP0" }, <KPDL> };
213         };
214     }; // End of "Keypad" section
215     alias <AC00> = <CAPS>;
216     alias <AA00> = <LCTL>;
217 };
218 xkb_geometry "pc102" {
219
220     // This is an approximate layout for 102-key SGI international
221     // keyboards.  I just took a similar layout (101 key PC keyboard)
222     // and adjusted the sizes of a few keys by eye.  I didn't actually
223     // *measure* a real keyboard.
224
225     description= "Silicon Graphics 102-key Keyboard";
226     width= 470;
227     height= 193;
228
229     shape.cornerRadius= 1;
230     shape "EDGE" { cornerRadius=2, { [ 470, 193 ] } };
231     shape "NORM" { { [18,18] }, { [2,1], [16,17] } };
232     shape "BKSP" { { [35,18] }, { [2,1], [33,17] } };
233     shape "TABK" { { [27,18] }, { [2,1], [25,17] } };
234     shape "RTRN" {
235         approx = { [ 0, 0], [26,37] },
236         { [ 0, 0], [26, 0], [26,37],
237           [ 5,37], [ 5,18], [ 0,18] },
238         { [ 1, 1], [24, 1], [24,36],
239           [ 7,36], [ 7,17], [ 1,17] }
240     };
241     shape "CAPS" { { [ 32,18] }, { [2,1], [25,17] } };
242     shape "RTSH" { { [ 50,18] }, { [2,1], [48,17] } };
243     shape "LFSH" { { [ 22,18] }, { [2,1], [20,17] } };
244     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
245     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
246     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
247     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
248     shape "LOGO" { { [ 16,16] } };
249
250     outline "Edges" {
251         top= 0;
252         left= 0;
253         shape= "EDGE";
254     };
255
256     section.left= 19;
257     row.left= 1;
258     key.shape= "NORM";
259     key.gap=  1;
260     section "Function" {
261         top= 50;
262         row {
263             top= 1;
264             keys {      { <ESC>, color="grey20" },
265                         { <FK01>, 18}, <FK02>, <FK03>, <FK04>,
266                         { <FK05>, 10}, <FK06>, <FK07>, <FK08>,
267                         { <FK09>, 10}, <FK10>, <FK11>, <FK12>
268             };
269         };
270     }; // End of "Function" section
271
272     section "Alpha" {
273         top= 83;
274         row {
275             top= 1;
276             keys {      <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
277                         <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
278                         <AE10>, <AE11>, <AE12>,
279                         { <BKSP>, "BKSP", color= "grey20" }
280             };
281         };
282         row {
283             top= 20;
284             keys {      { <TAB>, "TABK", color= "grey20" },
285                         <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
286                         <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
287                         <AD11>, <AD12>,
288                         { <RTRN>, "RTRN", color= "grey20" }
289             };
290         };
291         row {
292             top= 39;
293             keys {      { <CAPS>, "CAPS", color= "grey20" },
294                         <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
295                         <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
296                         <AC11>, <BKSL>
297             };
298         };
299         row {
300             top= 58;
301             keys {      { <LFSH>, "LFSH", color= "grey20" }, <LSGT>,
302                         <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
303                         <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
304                         { <RTSH>, "RTSH", color= "grey20" }
305             };
306         };
307         row {
308             top= 77;
309             key.shape= "MODK";
310             key.color= "grey20";
311             keys {      <LCTL>,
312                         { <LALT>, 19 },
313                         { <SPCE>, "SPCE", color="white" },
314                         <RALT>,
315                         { <RCTL>, 19 }
316             };
317         };
318     }; // End of "Alpha" section
319
320     section "Editing" {
321         top= 50;
322         left= 308;
323         key.color= "grey20";
324         row {
325             top= 1;
326             keys { <PRSC>, <SCLK>, <PAUS> };
327         };
328         row {
329             top= 33;
330             keys { <INS>, <HOME>, <PGUP> };
331         };
332         row {
333             top= 53;
334             keys { <DELE>, <END>, <PGDN> };
335         };
336         row {
337             top= 91;
338             left= 20;
339             keys { <UP> };
340         };
341         row {
342             top= 110;
343             keys { <LEFT>, <DOWN>, <RGHT> };
344         };
345     }; // End of "Editing" section
346
347     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
348     shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
349     solid "LedPanel" {
350         shape= "LEDS";
351         top=  50;
352         left= 375;
353         color= "grey10";
354     };
355     indicator.onColor= "green";
356     indicator.offColor= "green30";
357     indicator.top= 64.5;
358     indicator.shape= "LED";
359     indicator "Num Lock"     { left= 384; };
360     indicator "Caps Lock"    { left= 409; };
361     indicator "Scroll Lock"  { left= 434; };
362     text.top= 52;
363     text.color= "black";
364     text "NumLockLabel"         { left= 380.5; text="Num\nLock"; };
365     text "CapsLockLabel"        { left= 405; text="Caps\nLock"; };
366     text "ScrollLockLabel"      { left= 430; text="Scroll\nLock"; };
367
368     logo "SGILogoImage" { 
369         top= 17;
370         left= 22;
371         name= "SGI"; 
372         shape= "LOGO"; 
373     };
374     text "SGILogoText"  {
375         top= 21;
376         left= 40;
377         width= 50;
378         text= "SiliconGraphics";
379         font= "helvetica";
380         slant= "o";
381         weight= "bold";
382         setWidth= "narrow";
383         fontSize= 24;
384     };
385
386     section "Keypad" {
387         top= 83;
388         left= 374;
389         row {
390             top= 1;
391             key.color= "grey20";
392             keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
393         };
394         row {
395             top= 20;
396             keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
397         };
398         row {
399             top= 39;
400             keys { <KP4>, <KP5>, <KP6> };
401         };
402         row {
403             top= 58;
404             keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
405         };
406         row {
407             top= 77;
408             keys { { <KP0>, "KP0" }, <KPDL> };
409         };
410     }; // End of "Keypad" section
411     alias <AC00> = <CAPS>;
412     alias <AA00> = <LCTL>;
413 };