• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2//Copyright 1996, 1998  The Open Group
3//
4//Permission to use, copy, modify, distribute, and sell this software and its
5//documentation for any purpose is hereby granted without fee, provided that
6//the above copyright notice appear in all copies and that both that
7//copyright notice and this permission notice appear in supporting
8//documentation.
9//
10//The above copyright notice and this permission notice shall be
11//included in all copies or substantial portions of the Software.
12//
13//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16//IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17//OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18//ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19//OTHER DEALINGS IN THE SOFTWARE.
20//
21//Except as contained in this notice, the name of The Open Group shall
22//not be used in advertising or otherwise to promote the sale, use or
23//other dealings in this Software without prior written authorization
24//from The Open Group.
25//
26default xkb_geometry "FlexPro" {
27
28    // This is an approximate layout for a Key Tronic FlexPro
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= "Key Tronic FlexPro keyboard";
34
35    width= 515;
36    height= 200;
37
38    shape "EDGE" { cornerRadius= 2, { [ 515, 200 ] } };
39    shape.cornerRadius= 1;
40    shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
41    shape "BKSP" { { [ 32,18] }, { [2,1], [30,17] } };
42    shape "TABK" { { [ 32,18] }, { [2,1], [30,17] } };
43    shape "BKSL" { { [ 23,18] }, { [2,1], [21,17] } };
44    shape "RTRN" {
45        approx = { [16, 0], [38,37] },
46        { [16, 0], [38, 0], [38,37],
47	  [ 0,37], [ 0,19], [16,19] },
48        { [18, 1], [36, 1], [36,36],
49	  [ 2,36], [ 2,20], [18,20] } };
50    shape "CAPS" { { [36,18] }, { [2,1], [34,17] } };
51    shape "SHFT" { { [46,18] }, { [2,1], [44,17] } };
52    shape "LCTL" { { [32,18] }, { [2,1], [30,17] } };
53    shape "RCTL" { { [38,18] }, { [2,1], [36,17] } };
54    shape "LALT" { { [28,18] }, { [2,1], [26,17] } };
55    shape "RALT" { { [33,18] }, { [2,1], [31,17] } };
56    shape "LSPC" { { [66,22] }, { [0,0], [66,22] } };
57    shape "RSPC" { { [76,22] }, { [0,0], [76,22] } };
58    shape "KP0"  { { [37,18] }, { [2,1], [35,17] } };
59    shape "KPEN" { { [18,37] }, { [2,1], [16,36] } };
60    shape "LOGO" { cornerRadius= 3, { [80,35] } };
61
62    outline "Edges" {
63   	top= 0;
64	left= 0;
65	shape= "EDGE";
66    };
67
68    section.left= 9;
69    row.left= 1;
70    key.shape= "NORM";
71    key.gap=  1;
72
73    section "Function" {
74	top= 56;
75	row {
76	    top = 1;
77	    key.color= "grey20";
78	    keys { <FK01>, <FK02> };
79	};
80	row {
81	    top = 20;
82	    key.color= "grey20";
83	    keys { <FK03>, <FK04> };
84	};
85	row {
86	    top = 39;
87	    keys { <FK05>, <FK06> };
88	};
89	row {
90	    top = 58;
91	    key.color= "grey20";
92	    keys { <FK07>, <FK08> };
93	};
94	row {
95	    top = 77;
96	    key.color= "grey20";
97	    keys { <FK09>, <FK10> };
98	};
99	row {
100	    top = 96;
101	    keys { <FK11>, <FK12> };
102	};
103    }; // End of "Function" section
104
105    section "Alpha" {
106	top= 56;
107	left= 53;
108	row {
109	    top= 1;
110	    keys {
111		{ <ESC>, color="grey20" }, { <BKSL>, "BKSL", color="grey20" },
112		<AE01>, <AE02>, <AE03>, <AE04>,
113		<AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
114		<AE10>, <AE11>, <AE12>,
115		{ <BKSP>, "BKSP", color="grey20" }
116	    };
117	};
118	row {
119	    top= 20;
120	    keys {
121		{ <TLDE>, color="grey20" },  { <TAB>, "TABK", color="grey20" },
122		<AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
123		<AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
124		<AD11>, <AD12>,
125		{ <RTRN>, "RTRN", -14, color="grey20" }
126	    };
127	};
128	row {
129	    top= 39;
130	    keys {
131		{ <LCTL>, color="grey20" }, { <CAPS>, "CAPS", color="grey20" },
132		<AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
133		<AC06>, <AC07>, <AC08>, <AC09>, <AC10>, <AC11>
134	    };
135	};
136	row {
137	    top= 58;
138	    keys {
139		{ <LFSH>, color="grey20" },
140		{ <LFSH>, "SHFT", color="grey20" },
141		<AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
142		<AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
143		{ <RTSH>, "SHFT", color="grey20" }
144	    };
145	};
146	row {
147	    top= 77;
148	    key.color= "grey20";
149	    keys {
150		<LALT>,
151		{ <LCTL>, shape="LCTL" },
152		{ <LALT>, shape="LALT" },
153		{ <SPCE>, shape="LSPC", 4, color="white" },
154		{ <SPCE>, shape="RSPC",color="white" },
155		{ <RALT>, shape="RALT", 4 },
156		{ <RCTL>, shape="RCTL" }
157	    };
158	};
159    }; // End of "Alpha" section
160
161    section "Editing" {
162	top= 12;
163	left= 365;
164	key.color= "grey20";
165	row {
166	    top= 1;
167	    keys { <PRSC>, <SCLK>, <PAUS> };
168	};
169	row {
170	    top= 45;
171	    keys { <INS>, <HOME>, <PGUP> };
172	};
173	row {
174	    top= 64;
175	    keys { <DELE>, <END>, <PGDN> };
176	};
177	row {
178	    top= 102;
179	    left= 20;
180	    keys { <UP> };
181	};
182	row {
183	    top= 121;
184	    keys { <LEFT>, <DOWN>, <RGHT> };
185    	};
186    }; // End of "Editing" section
187
188    shape "LEDS" { cornerRadius= 3, { [ 76, 20 ] } };
189    shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };
190    solid "LedPanel" {
191    	shape= "LEDS";
192	top=  11;
193	left= 430;
194	color= "grey10";
195    };
196    indicator.onColor= "green";
197    indicator.offColor= "green30";
198    indicator.top= 13;
199    indicator.shape= "LED";
200    indicator "Num Lock"     { left= 440; };
201    indicator "Caps Lock"    { left= 467; };
202    indicator "Scroll Lock"  { left= 489; };
203    text.top= 22;
204    text.color= "black";
205    text "NumLockLabel"		{ left= 438; text="Num\nLock"; };
206    text "CapsLockLabel"	{ left= 465; text="Caps\nLock"; };
207    text "ScrollLockLabel"	{ left= 487; text="Scroll\nLock"; };
208
209    logo "FlexProLogoImage" 	{
210	top= 12;
211	left= 45;
212	name= "KeyTronic";
213	shape= "LOGO";
214    };
215    text "KeyTronicLogoText"	{
216	top= 15;
217	left= 50;
218	width= 55;
219	text= "FlexPro";
220	font= "times";
221	slant= "o";
222	weight= "bold";
223	fontWidth= "narrow";
224	fontSize= 36;
225    };
226
227    section "Keypad" {
228	top= 56;
229	left= 430;
230	row {
231	    top= 1;
232	    key.color= "grey20";
233	    keys { <NMLK>, <KPDV>, <KPMU>, <LEFT> };
234	};
235	row {
236	    top= 20;
237	    keys { <KP7>, <KP8>, <KP9>, { <KPSU>, color= "grey20" } };
238	};
239	row {
240	    top= 39;
241	    keys { <KP4>, <KP5>, <KP6>, { <KPAD>, color= "grey20" } };
242    	};
243	row {
244	    top= 58;
245	    keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN", color= "grey20" } };
246	};
247	row {
248	    top= 77;
249	    keys { { <KP0>, "KP0" }, <KPDL> };
250	};
251    }; // End of "Keypad" section
252};
253