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