first feed-in of the layouts. The revolution is coming
[xorg/xkeyboard-config] / geometry / sgi.vndr / O2
1 // $Xorg: O2,v 1.3 2000/08/17 19:54:36 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= "101-key keyboard for Silicon Graphics O2";
36
37     width= 448;
38     height= 162;
39
40     shape "EDGE" { 
41         cornerRadius= 2, 
42         { [ 15,    0 ], [ 433,   0 ], [ 433, 10 ], [ 448, 10 ],
43           [ 448, 162 ], [   0, 162 ], [   0, 10 ], [ 15,  10 ] }
44     };
45     shape.cornerRadius= 1;
46     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
47     shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };
48     shape "TABK" { { [ 28,18] }, { [2,1], [26,17] } };
49     shape "BKSL" { { [ 27,18] }, { [2,1], [25,17] } };
50     shape "RTRN" { { [ 40,18] }, { [2,1], [37,17] } };
51     shape "CAPS" { { [ 34,18] }, { [2,1], [29,17] } };
52     shape "RTSH" { { [ 49,18] }, { [2,1], [47,17] } };
53     shape "LFSH" { { [ 44,18] }, { [2,1], [42,17] } };
54     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
55     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
56     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
57     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
58     shape "LOGO" { { [ 12,12] } };
59
60     outline "Edges" {
61         top= 0;
62         left= 0;
63         shape= "EDGE";
64     };
65
66     section.left= 6;
67     row.left= 1;
68     key.shape= "NORM";
69     key.gap=  1;
70     section "Function" {
71         top= 25;
72         row {
73             top= 1;
74             keys {      { <ESC>, color="grey20" },
75                         { <FK01>, 19}, <FK02>, <FK03>, <FK04>,
76                         { <FK05>, 11}, <FK06>, <FK07>, <FK08>,
77                         { <FK09>, 11}, <FK10>, <FK11>, <FK12>
78             };
79         };
80     }; // End of "Function" section
81
82     section "Alpha" {
83         top= 58;
84         row {
85             top= 1;
86             keys {      <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
87                         <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
88                         <AE10>, <AE11>, <AE12>,
89                         { <BKSP>, "BKSP", color="grey20" }
90             };
91         };
92         row {
93             top= 20;
94             keys {      { <TAB>, "TABK", color= "grey20" },
95                         <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
96                         <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
97                         <AD11>, <AD12>,
98                         { <BKSL>, "BKSL" }
99             };  
100         };
101         row {
102             top= 39;
103             keys {      { <CAPS>, "CAPS", color="grey20" },
104                         <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
105                         <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
106                         <AC11>, { <RTRN>, "RTRN", color="grey20" }
107             };
108         };
109         row {
110             top= 58;
111             keys {      { <LFSH>, "LFSH", color="grey20" }, 
112                         <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
113                         <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
114                         { <RTSH>, "RTSH", color="grey20" }
115             };
116         };
117         row {
118             top= 77;
119             key.shape= "MODK";
120             key.color= "grey20";
121             keys {      <LCTL>, { <LALT>, 20 },
122                         { <SPCE>, "SPCE",color="white" },
123                         <RALT>, { <RCTL>, 20 }
124             };
125         };
126     }; // End of "Alpha" section
127
128     section "Editing" {
129         top= 25;
130         left= 299;
131         key.color= "grey20";
132         row {
133             top= 1;
134             keys { <PRSC>, <SCLK>, <PAUS> };
135         };
136         row {
137             top= 33;
138             keys { <INS>, <HOME>, <PGUP> };
139         };
140         row {
141             top= 53;
142             keys { <DELE>, <END>, <PGDN> };
143         };
144         row {
145             top= 91;
146             left= 20;
147             keys { <UP> };
148         };
149         row {
150             top= 110;
151             keys { <LEFT>, <DOWN>, <RGHT> };
152         };
153     }; // End of "Editing" section
154
155     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
156     shape "LED"  { cornerRadius= 0, { [  3, 1.5] } };
157     solid "LedPanel" {
158         shape= "LEDS";
159         top=  25;
160         left= 364;
161         color= "grey10";
162     };
163     indicator.onColor= "green";
164     indicator.offColor= "green30";
165     indicator.top= 40.5;
166     indicator.shape= "LED";
167     indicator "Num Lock"     { left= 372; };
168     indicator "Caps Lock"    { left= 397; };
169     indicator "Scro llLock"  { left= 422; };
170
171     text.font= "helvetica";
172     text.weight= "bold";
173     text.slant= "r";
174     text.fontWidth= "normal";
175     text.fontSize= 12;
176     text.top= 39.5;
177     text.color= "black";
178     text "NumLockLabel"         { left= 376.5; text="1"; };
179     text "CapsLockLabel"        { left= 401.5; text="A"; };
180     text "ScrollLockLabel"      { left= 426.5; text="S"; };
181     
182     logo "SGILogoImage"         { 
183         top= 26.5;
184         left= 396;
185         name= "SGI"; 
186         shape= "LOGO"; 
187     };
188     text.font= "helvetica";
189     text.weight= "bold";
190     text.slant= "o";
191     text.fontWidth= "narrow";
192     text.fontSize= 18;
193     text "SiliconLogoText"      {
194         top= 27;
195         left= 375;
196         width= 20;
197         text= "Silicon";
198     };
199     text "GraphicsLogoText"     {
200         top= 27;
201         left= 409;
202         width= 20;
203         text= "Graphics";
204     };
205
206     section "Keypad" {
207         top= 58;
208         left= 363;
209         row {
210             top= 1;
211             key.color= "grey20";
212             keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
213         };
214         row {
215             top= 20;
216             keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color= "grey20" } };
217         };
218         row {
219             top= 39;
220             keys { <KP4>, <KP5>, <KP6> };
221         };
222         row {
223             top= 58;
224             keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color= "grey20" } };
225         };
226         row {
227             top= 77;
228             keys { { <KP0>, "KP0" }, <KPDL> };
229         };
230     }; // End of "Keypad" section
231     alias <AC00> = <CAPS>;
232     alias <AA00> = <LCTL>;
233 };
234
235 xkb_geometry "pc102" {
236
237     // This is an approximate layout for 102-key SGI international
238     // keyboards.  I just took a similar layout (101 key PC keyboard)
239     // and adjusted the sizes of a few keys by eye.  I didn't actually
240     // *measure* a real keyboard.
241
242     description= "Silicon Graphics 102-key Keyboard";
243     width= 470;
244     height= 193;
245
246     shape.cornerRadius= 1;
247     shape "EDGE" { cornerRadius=2, { [ 470, 193 ] } };
248     shape "NORM" { { [18,18] }, { [2,1], [16,17] } };
249     shape "BKSP" { { [35,18] }, { [2,1], [33,17] } };
250     shape "TABK" { { [27,18] }, { [2,1], [25,17] } };
251     shape "RTRN" {
252         approx = { [ 0, 0], [26,37] },
253         { [ 0, 0], [26, 0], [26,37],
254           [ 5,37], [ 5,18], [ 0,18] },
255         { [ 1, 1], [24, 1], [24,36],
256           [ 7,36], [ 7,17], [ 1,17] }
257     };
258     shape "CAPS" { { [ 32,18] }, { [2,1], [25,17] } };
259     shape "RTSH" { { [ 50,18] }, { [2,1], [48,17] } };
260     shape "LFSH" { { [ 22,18] }, { [2,1], [20,17] } };
261     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
262     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
263     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
264     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
265     shape "LOGO" { { [ 16,16] } };
266
267     outline "Edges" {
268         top= 0;
269         left= 0;
270         shape= "EDGE";
271     };
272
273     section.left= 19;
274     row.left= 1;
275     key.shape= "NORM";
276     key.gap=  1;
277     section "Function" {
278         top= 50;
279         row {
280             top= 1;
281             keys {      { <ESC>, color="grey20" },
282                         { <FK01>, 18}, <FK02>, <FK03>, <FK04>,
283                         { <FK05>, 10}, <FK06>, <FK07>, <FK08>,
284                         { <FK09>, 10}, <FK10>, <FK11>, <FK12>
285             };
286         };
287     }; // End of "Function" section
288
289     section "Alpha" {
290         top= 83;
291         row {
292             top= 1;
293             keys {      <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
294                         <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
295                         <AE10>, <AE11>, <AE12>,
296                         { <BKSP>, "BKSP", color= "grey20" }
297             };
298         };
299         row {
300             top= 20;
301             keys {      { <TAB>, "TABK", color= "grey20" },
302                         <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
303                         <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
304                         <AD11>, <AD12>,
305                         { <RTRN>, "RTRN", color= "grey20" }
306             };
307         };
308         row {
309             top= 39;
310             keys {      { <CAPS>, "CAPS", color= "grey20" },
311                         <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
312                         <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
313                         <AC11>, <BKSL>
314             };
315         };
316         row {
317             top= 58;
318             keys {      { <LFSH>, "LFSH", color= "grey20" }, <LSGT>,
319                         <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
320                         <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
321                         { <RTSH>, "RTSH", color= "grey20" }
322             };
323         };
324         row {
325             top= 77;
326             key.shape= "MODK";
327             key.color= "grey20";
328             keys {      <LCTL>,
329                         { <LALT>, 19 },
330                         { <SPCE>, "SPCE", color="white" },
331                         <RALT>,
332                         { <RCTL>, 19 }
333             };
334         };
335     }; // End of "Alpha" section
336
337     section "Editing" {
338         top= 50;
339         left= 308;
340         key.color= "grey20";
341         row {
342             top= 1;
343             keys { <PRSC>, <SCLK>, <PAUS> };
344         };
345         row {
346             top= 33;
347             keys { <INS>, <HOME>, <PGUP> };
348         };
349         row {
350             top= 53;
351             keys { <DELE>, <END>, <PGDN> };
352         };
353         row {
354             top= 91;
355             left= 20;
356             keys { <UP> };
357         };
358         row {
359             top= 110;
360             keys { <LEFT>, <DOWN>, <RGHT> };
361         };
362     }; // End of "Editing" section
363
364     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
365     shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
366     solid "LedPanel" {
367         shape= "LEDS";
368         top=  50;
369         left= 375;
370         color= "grey10";
371     };
372     indicator.onColor= "green";
373     indicator.offColor= "green30";
374     indicator.top= 64.5;
375     indicator.shape= "LED";
376     indicator "Num Lock"     { left= 384; };
377     indicator "Caps Lock"    { left= 409; };
378     indicator "Scroll Lock"  { left= 434; };
379     text.top= 52;
380     text.color= "black";
381     text "NumLockLabel"         { left= 380.5; text="Num\nLock"; };
382     text "CapsLockLabel"        { left= 405; text="Caps\nLock"; };
383     text "ScrollLockLabel"      { left= 430; text="Scroll\nLock"; };
384
385     logo "SGILogoImage" { 
386         top= 17;
387         left= 22;
388         name= "SGI"; 
389         shape= "LOGO"; 
390     };
391     text "SGILogoText"  {
392         top= 21;
393         left= 40;
394         width= 50;
395         text= "SiliconGraphics";
396         font= "helvetica";
397         slant= "o";
398         weight= "bold";
399         setWidth= "narrow";
400         fontSize= 24;
401     };
402
403     section "Keypad" {
404         top= 83;
405         left= 374;
406         row {
407             top= 1;
408             key.color= "grey20";
409             keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
410         };
411         row {
412             top= 20;
413             keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
414         };
415         row {
416             top= 39;
417             keys { <KP4>, <KP5>, <KP6> };
418         };
419         row {
420             top= 58;
421             keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
422         };
423         row {
424             top= 77;
425             keys { { <KP0>, "KP0" }, <KPDL> };
426         };
427     }; // End of "Keypad" section
428     alias <AC00> = <CAPS>;
429     alias <AA00> = <LCTL>;
430 };
431
432 xkb_geometry "jp106" {
433     description= "Silicon Graphics 106-key Japanese keyboard";
434     width= 442;
435     height= 167;
436
437     shape "EDGE" { cornerRadius= 2, { [ 442, 167 ] } };
438     shape.cornerRadius= 1;
439     shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
440     shape "BKSP" { { [ 18,18] }, { [2,1], [ 16,17] } };
441     shape "TABK" { { [ 28,18] }, { [2,1], [ 26,17] } };
442     shape "BKSL" { { [ 27,18] }, { [2,1], [ 25,17] } };
443     shape "RTRN" {
444         { [0,0],[ 27,0],[27,37],[4,37],[4,18],[0,18] } ,
445         { [2,1],[ 25,1],[25,36],[5,36],[5,17],[2,17] } };
446     shape "CAPS" { { [ 32,18] }, { [2,1], [ 30,17] } };
447     shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,17] } };
448     shape "RTSH" { { [ 32,18] }, { [2,1], [ 30,17] } };
449     shape "MODK" { { [ 28,18] }, { [2,1], [ 26,17] } };
450     shape "SPCE" { { [ 46,18] }, { [2,1], [ 44,17] } };
451     shape "KP0"  { { [ 37,18] }, { [2,1], [ 35,17] } };
452     shape "KPAD" { { [ 18,37] }, { [2,1], [ 16,36] } };
453     shape "LOGO" { { [ 16,16] } };
454
455     outline "Edges" {
456         top= 0;
457         left= 0;
458         shape= "EDGE";
459     };
460
461     logo "SGILogoImage" { 
462         top= 5;
463         left= 6;
464         name= "SGI"; 
465         shape= "LOGO"; 
466     };
467
468     text "SGILogoText"  {
469         top= 9;
470         left= 25;
471         width= 50;
472         text= "SiliconGraphics";
473         font= "helvetica";
474         slant= "o";
475         weight= "bold";
476         fontWidth= "narrow";
477         fontSize= 24;
478     };
479
480     shape "LEDS" { cornerRadius= 0.1, { [ 76 ,20 ] } };
481     shape "LED"  { cornerRadius= 0, { [  5,  1 ] } };
482     solid "LedPanel" {
483         shape= "LEDS";
484         top=  25;
485         left= 362;
486         color= "grey10";
487     };
488
489     indicator.onColor= "green";
490     indicator.offColor= "green30";
491     indicator.top= 40;
492     indicator.shape= "LED";
493     indicator "Num Lock"     { left= 366; };
494     indicator "Caps Lock"    { left= 391; };
495     indicator "Scroll Lock"  { left= 416; };
496     text.top= 28;
497     text.color= "black";
498     text "NumLockLabel"         { left= 366; text="Num\nLock"; };
499     text "CapsLockLabel"        { left= 391; text="Caps\nLock"; };
500     text "ScrollLockLabel"      { left= 416; text="Scroll\nLock"; };
501
502     section.left= 5;
503     row.left= 1;
504     key.shape= "NORM";
505     key.gap=  1;
506     section "Function" {
507         top= 25;
508         row {
509             top= 1;
510             keys {  { <ESC>, color="grey20" },
511                     { <FK01>, 18 }, <FK02>, <FK03>, <FK04>,
512                     { <FK05>, 11 ,color="grey20"}, {<FK06>,color="grey20"}, 
513                     { <FK07>, color="grey20"}, {<FK08>,color="grey20"},
514                     { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
515                     { <PRSC>, 8 }, <SCLK>, <PAUS> 
516             };
517         };
518     }; // End of "Function" section
519
520     section "Alpha" {
521         top= 61;
522         row {
523             top= 1;
524             keys { {<HZTG>,color="grey20"}, <AE01>, <AE02>, 
525                     <AE03>, <AE04>, <AE05>, <AE06>, <AE07>, 
526                     <AE08>, <AE09>, <AE10>, <AE11>, <AE12>,
527                     <AE13>, { <BKSP>, "BKSP", color="grey20" }
528             };
529         };
530         row {
531             top= 20;
532             keys { { <TAB>, "TABK", color="grey20" },
533                    <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
534                    <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
535                    <AD11>, <AD12>, { <RTRN>, 1 ,"RTRN",color="grey20" }
536             };
537         };
538         row {
539             top= 39;
540             keys { { <CAPS>, "CAPS", color="grey20" },
541                    <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
542                    <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
543                    <AC11>, <AC12>
544             };
545         };
546         row {
547             top= 58;
548             keys { { <LFSH>, "LFSH", color="grey20" },
549                     <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
550                     <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
551                     <AB11>, { <RTSH>, "RTSH", color="grey20" }
552             };
553         };
554         row {
555             top= 77;
556             key.shape= "MODK";
557             key.color= "grey20";
558             keys { <LCTL>, { <LALT>, 20 },<NFER>,
559                    { <SPCE>, "SPCE", color="white" },
560                    <XFER>,<HKTG>,<RALT>, { <RCTL>, 17 }
561             };
562         };
563     }; // End of "Alpha" section
564
565     section "Editing" {
566         top= 61;
567         left= 296;
568         key.color= "grey20";
569         row {
570             top= 1;
571             keys { <INS>, <HOME>, <PGUP> };
572         };
573         row {
574             top= 20;
575             keys { <DELE>, <END>, <PGDN> };
576         };
577         row {
578             top= 58;
579             left= 20;
580             keys { <UP> };
581         };
582         row {
583             top= 77;
584             keys { <LEFT>, <DOWN>, <RGHT> };
585         };
586     }; // End of "Editing" section
587
588     section "Keypad" {
589         top= 61;
590         left= 361;
591         row {
592             top= 1;
593             key.color= "grey20";
594             keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
595         };
596         row {
597             top= 20;
598             keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
599         };
600         row {
601             top= 39;
602             keys { <KP4>, <KP5>, <KP6> };
603         };
604         row {
605             top= 58;
606             keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
607         };
608         row {
609             top= 77;
610             keys { { <KP0>, "KP0" }, <KPDL> };
611         };
612     }; // End of "Keypad" section
613
614     alias <AC00> = <CAPS>;
615     alias <AA00> = <LCTL>;
616
617 }; // End of "jp106" geometry
618