xkeyboard-config
252 строки · 6.3 Кб
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
33description= "Key Tronic FlexPro keyboard";
34
35width= 515;
36height= 200;
37
38shape "EDGE" { cornerRadius= 2, { [ 515, 200 ] } };
39shape.cornerRadius= 1;
40shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
41shape "BKSP" { { [ 32,18] }, { [2,1], [30,17] } };
42shape "TABK" { { [ 32,18] }, { [2,1], [30,17] } };
43shape "BKSL" { { [ 23,18] }, { [2,1], [21,17] } };
44shape "RTRN" {
45approx = { [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] } };
50shape "CAPS" { { [36,18] }, { [2,1], [34,17] } };
51shape "SHFT" { { [46,18] }, { [2,1], [44,17] } };
52shape "LCTL" { { [32,18] }, { [2,1], [30,17] } };
53shape "RCTL" { { [38,18] }, { [2,1], [36,17] } };
54shape "LALT" { { [28,18] }, { [2,1], [26,17] } };
55shape "RALT" { { [33,18] }, { [2,1], [31,17] } };
56shape "LSPC" { { [66,22] }, { [0,0], [66,22] } };
57shape "RSPC" { { [76,22] }, { [0,0], [76,22] } };
58shape "KP0" { { [37,18] }, { [2,1], [35,17] } };
59shape "KPEN" { { [18,37] }, { [2,1], [16,36] } };
60shape "LOGO" { cornerRadius= 3, { [80,35] } };
61
62outline "Edges" {
63top= 0;
64left= 0;
65shape= "EDGE";
66};
67
68section.left= 9;
69row.left= 1;
70key.shape= "NORM";
71key.gap= 1;
72
73section "Function" {
74top= 56;
75row {
76top = 1;
77key.color= "grey20";
78keys { <FK01>, <FK02> };
79};
80row {
81top = 20;
82key.color= "grey20";
83keys { <FK03>, <FK04> };
84};
85row {
86top = 39;
87keys { <FK05>, <FK06> };
88};
89row {
90top = 58;
91key.color= "grey20";
92keys { <FK07>, <FK08> };
93};
94row {
95top = 77;
96key.color= "grey20";
97keys { <FK09>, <FK10> };
98};
99row {
100top = 96;
101keys { <FK11>, <FK12> };
102};
103}; // End of "Function" section
104
105section "Alpha" {
106top= 56;
107left= 53;
108row {
109top= 1;
110keys {
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};
118row {
119top= 20;
120keys {
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};
128row {
129top= 39;
130keys {
131{ <LCTL>, color="grey20" }, { <CAPS>, "CAPS", color="grey20" },
132<AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
133<AC06>, <AC07>, <AC08>, <AC09>, <AC10>, <AC11>
134};
135};
136row {
137top= 58;
138keys {
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};
146row {
147top= 77;
148key.color= "grey20";
149keys {
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
161section "Editing" {
162top= 12;
163left= 365;
164key.color= "grey20";
165row {
166top= 1;
167keys { <PRSC>, <SCLK>, <PAUS> };
168};
169row {
170top= 45;
171keys { <INS>, <HOME>, <PGUP> };
172};
173row {
174top= 64;
175keys { <DELE>, <END>, <PGDN> };
176};
177row {
178top= 102;
179left= 20;
180keys { <UP> };
181};
182row {
183top= 121;
184keys { <LEFT>, <DOWN>, <RGHT> };
185};
186}; // End of "Editing" section
187
188shape "LEDS" { cornerRadius= 3, { [ 76, 20 ] } };
189shape "LED" { cornerRadius= 0, { [ 7, 4 ] } };
190solid "LedPanel" {
191shape= "LEDS";
192top= 11;
193left= 430;
194color= "grey10";
195};
196indicator.onColor= "green";
197indicator.offColor= "green30";
198indicator.top= 13;
199indicator.shape= "LED";
200indicator "Num Lock" { left= 440; };
201indicator "Caps Lock" { left= 467; };
202indicator "Scroll Lock" { left= 489; };
203text.top= 22;
204text.color= "black";
205text "NumLockLabel" { left= 438; text="Num\nLock"; };
206text "CapsLockLabel" { left= 465; text="Caps\nLock"; };
207text "ScrollLockLabel" { left= 487; text="Scroll\nLock"; };
208
209logo "FlexProLogoImage" {
210top= 12;
211left= 45;
212name= "KeyTronic";
213shape= "LOGO";
214};
215text "KeyTronicLogoText" {
216top= 15;
217left= 50;
218width= 55;
219text= "FlexPro";
220font= "times";
221slant= "o";
222weight= "bold";
223fontWidth= "narrow";
224fontSize= 36;
225};
226
227section "Keypad" {
228top= 56;
229left= 430;
230row {
231top= 1;
232key.color= "grey20";
233keys { <NMLK>, <KPDV>, <KPMU>, <LEFT> };
234};
235row {
236top= 20;
237keys { <KP7>, <KP8>, <KP9>, { <KPSU>, color= "grey20" } };
238};
239row {
240top= 39;
241keys { <KP4>, <KP5>, <KP6>, { <KPAD>, color= "grey20" } };
242};
243row {
244top= 58;
245keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN", color= "grey20" } };
246};
247row {
248top= 77;
249keys { { <KP0>, "KP0" }, <KPDL> };
250};
251}; // End of "Keypad" section
252};
253