xkeyboard-config
223 строки · 8.1 Кб
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//
26
27
28
29// modified from /usr/share/X11/xkb/geometry/pc(pc104)
30//
31// The Apex 300 (Apex RAW) has 21 additional keys and
32// <RWIN> is replaced by a hardware <FN> key. These
33// additions to the basic PC104 layout are shown in red.
34//
35// Currently the kernel doesn't initialize these keys; a userspace
36// tool is needed (apexctl: https://github.com/tuxmark5/ApexCtl).
37// With this tool or a proper driver, the extra keys (except FN)
38// can be assigned keycodes via udev-hwdb.
39//
40// FIXME: Keycodes shown here should be changed to match
41// kernel defaults when a driver is developed.
42//
43// The additional keys are in 4 groups:
44// 1) L1-L2 left of Escape (column) <I156>,<I157>
45// 2) M1-M12 above F1-F12 (row) <FK13>-<FK24>
46// 3) MX1-MX5 left of alpha keys (column) <I171>-<I175>
47// 4) LeftUp, RightUp with regular arrows <I160>,<I159>
48//
49// Known <FN> key functions:
50// <FN>+<F5> = kbd backlight step dimmer (NoSymbol)
51// <FN>+<F6> = kbd backlight step brighter (NoSymbol)
52// <FN>+<F7> = <I173> (AudioPrev)
53// <FN>+<F8> = <I172> (AudioPlay, AudioPause)
54// <FN>+<F9> = <I171> (AudioNext)
55// <FN>+<F10> = <MUTE> (AudioMute)
56// <FN>+<F10> = <VOL+> (VolumeUp)
57// <FN>+<F11> = <VOL-> (VolumeDown)
58//
59// And yes, the spacebar really is that ridiculous.
60//
61// 2017.April
62//
63default xkb_geometry "apex300" {
64
65description= "SteelSeries Apex 300 (Apex RAW)";
66width= 450;
67height= 150;
68
69shape.cornerRadius= 1;
70shape "NORM" { { [ 18,18] }, { [2,1], [ 16,16] } };
71shape "BKSP" { { [ 38,18] }, { [2,1], [ 36,16] } };
72shape "TABK" { { [ 28,18] }, { [2,1], [ 26,16] } };
73shape "BKSL" { { [ 28,18] }, { [2,1], [ 26,16] } };
74shape "RTRN" { { [ 42,18] }, { [2,1], [ 40,16] } };
75shape "CAPS" { { [ 33,18] }, { [2,1], [ 31,16] } };
76shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,16] } };
77shape "RTSH" { { [ 52,18] }, { [2,1], [ 50,16] } };
78shape "MODK" { { [ 27,18] }, { [2,1], [ 25,16] } };
79shape "SMOD" { { [ 23,18] }, { [2,1], [ 21,16] } };
80shape "SPCE" { { [113,37] }, { [2,1], [111,35] } };
81shape "KP0" { { [ 37,18] }, { [2,1], [ 35,16] } };
82shape "KPAD" { { [ 18,37] }, { [2,1], [ 16,35] } };
83shape "MKEY" { { [ 18,8] }, { [2,1], [ 16,7] } };
84shape "ESCA" { { [ 18,28] }, { [2,1], [ 16,27] } };
85shape "LKEY" { { [ 18,14] }, { [2,1], [ 16,13] } };
86shape "LEDS" { cornerRadius= 0, { [ 54, 6 ] } };
87shape "LED" { cornerRadius= 0, { [ 4, 1 ] } };
88
89
90solid "LedPanel" {
91shape= "LEDS";
92top= 2;
93left= 315;
94color= "grey10";
95};
96
97
98indicator.onColor= "red";
99indicator.offColor= "red";
100indicator.top= 7;
101indicator.shape= "LED";
102indicator "Num Lock" { left= 321; };
103indicator "Caps Lock" { left= 340; };
104indicator "Scroll Lock" { left= 359; };
105text.top= 2;
106text.color= "black";
107text "NumLockLabel" { left= 322; text="N"; };
108text "CapsLockLabel" { left= 341; text="C"; };
109text "ScrollLockLabel" { left= 360; text="S"; };
110text "SteelSeriesLogo" { top= 10; left= 400; text="SteelSeries"; };
111text "FNLogoKeyLabel" { top= 130; left= 248; text="FN"; };
112
113key.shape= "NORM";
114key.gap= 1;
115key.color= "grey10";
116
117
118section "Lkeys" {
119key.shape= "LKEY";
120key.color= "red";
121row { top= 1; keys { <I156> }; };
122row { top= 15; keys { <I157> }; };
123}; // end of "Lkeys" section
124
125
126section "MXkeys" {
127key.shape= "NORM";
128key.color= "red";
129row { top= 35; keys { <I171> }; }; // 40 59 78 97 116
130row { top= 54; keys { <I172> }; }; // 35 54 73 92 111
131row { top= 73; keys { <I173> }; };
132row { top= 92; keys { <I174> }; };
133row { top=111; keys { <I175> }; };
134}; // end of "MXkeys" section
135
136
137section "Escape" {
138left= 23;
139key.shape= "ESCA";
140key.color= "grey30";
141row { top= 1; keys { <ESC> }; };
142}; // end of "Escape" section
143
144
145section "Mkeys" {
146left= 61;
147key.color= "red";
148key.shape= "MKEY";
149row { top= 1;
150keys { <FK13>, <FK14>, <FK15>, <FK16>,
151{ <FK17>, 11 }, <FK18>, <FK19>, <FK20>,
152{ <FK21>, 11 }, <FK22>, <FK23>, <FK24> }; };
153}; // end of "Mkeys" section
154
155
156section "Function" {
157left= 61;
158key.color= "grey30";
159row { top= 10;
160keys { <FK01>, <FK02>, <FK03>, <FK04>,
161{ <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
162{ <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
163{ <PRSC>, 5 }, <SCLK>, <PAUS> }; };
164}; // end of "Function" section
165
166
167section "Alpha" {
168top= 35;
169left= 23;
170key.color= "grey10";
171row { keys { <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
172<AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
173<AE10>, <AE11>, <AE12>,
174{ <BKSP>, "BKSP", color="grey30" } }; };
175row { top= 19;
176keys { { <TAB>, "TABK", color="grey30" },
177<AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
178<AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
179<AD11>, <AD12>, { <BKSL>, "BKSL" } }; };
180row { top= 38;
181keys { { <CAPS>, "CAPS", color="grey30" },
182<AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
183<AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
184<AC11>, { <RTRN>, "RTRN", color="grey30" } }; };
185row { top= 57;
186keys { { <LFSH>, "LFSH", color="grey30" },
187<AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
188<AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
189{ <RTSH>, "RTSH", color="grey30" } }; };
190row { top= 76;
191key.shape= "SMOD";
192key.color= "grey30";
193keys { { <LCTL>, "MODK" }, <LWIN>, <LALT>, { <SPCE>, "SPCE" },
194<RALT>, { <I248>, color="red" }, <MENU>, <RCTL> }; };
195}; // end of "Alpha" section
196
197
198section "Editing" {
199top= 35;
200left= 313;
201key.color= "grey30";
202row { keys { <INS>, <HOME>, <PGUP> }; };
203row { top= 19; keys { <DELE>, <END>, <PGDN> }; };
204row { top= 57; keys { { <I160>, color="red" }, <UP>, { <I159>, color="red" } }; };
205row { top= 76; keys { <LEFT>, <DOWN>, <RGHT> }; };
206}; // end of "Editing" section
207
208
209section "Keypad" {
210top= 35;
211left= 373;
212key.color= "grey10";
213row { keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> }; };
214row { top= 19; keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD" } }; };
215row { top= 38; keys { <KP4>, <KP5>, <KP6> }; };
216row { top= 57; keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD" } }; };
217row { top= 76; keys { { <KP0>, "KP0" }, <KPDL> }; };
218}; // end of "Keypad" section
219
220alias <AC00> = <CAPS>;
221alias <AA00> = <LCTL>;
222
223}; // end of "apex300" geometry
224