indigo revision 154daed1
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//
26default 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};
216xkb_geometry "pc102" {
217
218    // This is an approximate layout for 102-key SGI international
219    // keyboards.  I just took a similar layout (101 key PC keyboard)
220    // and adjusted the sizes of a few keys by eye.  I didn't actually
221    // *measure* a real keyboard.
222
223    description= "Silicon Graphics 102-key Keyboard";
224    width= 470;
225    height= 193;
226
227    shape.cornerRadius= 1;
228    shape "EDGE" { cornerRadius=2, { [ 470, 193 ] } };
229    shape "NORM" { { [18,18] }, { [2,1], [16,17] } };
230    shape "BKSP" { { [35,18] }, { [2,1], [33,17] } };
231    shape "TABK" { { [27,18] }, { [2,1], [25,17] } };
232    shape "RTRN" {
233	approx = { [ 0, 0], [26,37] },
234	{ [ 0, 0], [26, 0], [26,37],
235	  [ 5,37], [ 5,18], [ 0,18] },
236	{ [ 1, 1], [24, 1], [24,36],
237	  [ 7,36], [ 7,17], [ 1,17] }
238    };
239    shape "CAPS" { { [ 32,18] }, { [2,1], [25,17] } };
240    shape "RTSH" { { [ 50,18] }, { [2,1], [48,17] } };
241    shape "LFSH" { { [ 22,18] }, { [2,1], [20,17] } };
242    shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
243    shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
244    shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
245    shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
246    shape "LOGO" { { [ 16,16] } };
247
248    outline "Edges" {
249	top= 0;
250	left= 0;
251	shape= "EDGE";
252    };
253
254    section.left= 19;
255    row.left= 1;
256    key.shape= "NORM";
257    key.gap=  1;
258    section "Function" {
259	top= 50;
260	row {
261	    top= 1;
262	    keys {  	{ <ESC>, color="grey20" },
263			{ <FK01>, 18}, <FK02>, <FK03>, <FK04>,
264			{ <FK05>, 10}, <FK06>, <FK07>, <FK08>,
265			{ <FK09>, 10}, <FK10>, <FK11>, <FK12>
266	    };
267	};
268    }; // End of "Function" section
269
270    section "Alpha" {
271	top= 83;
272	row {
273	    top= 1;
274	    keys { 	<TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
275			<AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
276			<AE10>, <AE11>, <AE12>,
277			{ <BKSP>, "BKSP", color= "grey20" }
278	    };
279	};
280	row {
281	    top= 20;
282	    keys { 	{ <TAB>, "TABK", color= "grey20" },
283			<AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
284			<AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
285			<AD11>, <AD12>,
286			{ <RTRN>, "RTRN", color= "grey20" }
287	    };
288	};
289	row {
290	    top= 39;
291	    keys { 	{ <CAPS>, "CAPS", color= "grey20" },
292			<AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
293			<AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
294			<AC11>, <BKSL>
295	    };
296	};
297	row {
298	    top= 58;
299	    keys { 	{ <LFSH>, "LFSH", color= "grey20" }, <LSGT>,
300			<AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
301			<AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
302			{ <RTSH>, "RTSH", color= "grey20" }
303	    };
304	};
305	row {
306	    top= 77;
307	    key.shape= "MODK";
308	    key.color= "grey20";
309	    keys {	<LCTL>,
310			{ <LALT>, 19 },
311			{ <SPCE>, "SPCE", color="white" },
312			<RALT>,
313			{ <RCTL>, 19 }
314	    };
315	};
316    }; // End of "Alpha" section
317
318    section "Editing" {
319	top= 50;
320	left= 308;
321	key.color= "grey20";
322	row {
323	    top= 1;
324	    keys { <PRSC>, <SCLK>, <PAUS> };
325	};
326	row {
327	    top= 33;
328	    keys { <INS>, <HOME>, <PGUP> };
329	};
330	row {
331	    top= 53;
332	    keys { <DELE>, <END>, <PGDN> };
333	};
334	row {
335	    top= 91;
336	    left= 20;
337	    keys { <UP> };
338	};
339	row {
340	    top= 110;
341	    keys { <LEFT>, <DOWN>, <RGHT> };
342	};
343    }; // End of "Editing" section
344
345    shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
346    shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
347    solid "LedPanel" {
348	shape= "LEDS";
349	top=  50;
350	left= 375;
351	color= "grey10";
352    };
353    indicator.onColor= "green";
354    indicator.offColor= "green30";
355    indicator.top= 64.5;
356    indicator.shape= "LED";
357    indicator "Num Lock"     { left= 384; };
358    indicator "Caps Lock"    { left= 409; };
359    indicator "Scroll Lock"  { left= 434; };
360    text.top= 52;
361    text.color= "black";
362    text "NumLockLabel"		{ left= 380.5; text="Num\nLock"; };
363    text "CapsLockLabel"	{ left= 405; text="Caps\nLock"; };
364    text "ScrollLockLabel"	{ left= 430; text="Scroll\nLock"; };
365
366    logo "SGILogoImage" { 
367	top= 17;
368	left= 22;
369	name= "SGI"; 
370	shape= "LOGO"; 
371    };
372    text "SGILogoText"	{
373	top= 21;
374	left= 40;
375	width= 50;
376	text= "SiliconGraphics";
377	font= "helvetica";
378	slant= "o";
379	weight= "bold";
380	setWidth= "narrow";
381	fontSize= 24;
382    };
383
384    section "Keypad" {
385	top= 83;
386	left= 374;
387	row {
388	    top= 1;
389	    key.color= "grey20";
390	    keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
391	};
392	row {
393	    top= 20;
394	    keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
395	};
396	row {
397	    top= 39;
398	    keys { <KP4>, <KP5>, <KP6> };
399	};
400	row {
401	    top= 58;
402	    keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
403	};
404	row {
405	    top= 77;
406	    keys { { <KP0>, "KP0" }, <KPDL> };
407	};
408    }; // End of "Keypad" section
409    alias <AC00> = <CAPS>;
410    alias <AA00> = <LCTL>;
411};
412