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