2 // XKB geometry for the Happy Hacking Keyboard (Lite).
3 // Different variants correspond to different switch
4 // settings on the HHK.
6 // Copyright (c) Doug Palmer <doug@charvolant.org>, 2002
8 //Permission is hereby granted, free of charge, to any person obtaining a copy
9 //of this software and associated documentation files (the "Software"), to deal
10 //in the Software without restriction, including without limitation the rights
11 //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 //copies of the Software, and to permit persons to whom the Software is
13 //furnished to do so, subject to the following conditions:
15 //The above copyright notice and this permission notice shall be included in
16 //all copies or substantial portions of the Software.
18 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 // SW = 100 Default layout with windows keys
27 default xkb_geometry "win1" {
47 // SW = 101 Layout with windows and alt keys swapped
68 // SW = 110 Default layout with windows keys, and left diamond = Fn key
89 // SW = 101 Layout with windows and alt keys swapped and left-Alt = Fn key
110 // SW = 000 Layout with Muhenkan and Henkan keys
131 // SW = 001 Layout with Muhenkan and Henkan keys swapped with Alt keys
152 // SW = 010 Layout with Henkan key and left-diamond as Fn
173 // SW = 001 Layout with Henkan key swapped with Alt keys and left-Alt as Fn
194 // Basic layout for non-swictchable keys
195 partial hidden xkb_geometry "basic" {
197 description = "Happy Hacking Keyboard";
201 shape.cornerRadius = 1;
202 shape "NORM" { { [18, 18] }, { [2, 1], [14, 14] } };
203 shape "BKSP" { { [28, 18] }, { [2, 1], [24, 14] } };
204 shape "TABK" { { [28, 18] }, { [2, 1], [24, 14] } };
205 shape "CTRL" { { [32, 18] }, { [2, 1], [28, 14] } };
206 shape "RTRN" { { [42, 18] }, { [2, 1], [38, 14] } };
207 shape "LFSH" { { [42, 18] }, { [2, 1], [38, 14] } };
208 shape "RTSH" { { [32, 18] }, { [2, 1], [28, 14] } };
209 shape "DIAM" { { [28, 18] }, { [2, 1], [24, 14] } };
210 shape "SPCE" { { [114, 18] }, { [2, 1], [110, 14] } };
212 text.color = "black";
213 text "PFULabel" { left = 16; top = 2; fontsize = 20; text = "PFU"; };
214 text "HHKLabel" { left = 254; top = 90; text = "Happy Hacking\nKeyboard"; };
221 section "Alphanumeric" {
227 <AE01>, <AE02>, <AE03>, <AE04>, <AE05>,
228 <AE06>, <AE07>, <AE08>, <AE09>, <AE10>,
237 <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
238 <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
247 <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
248 <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
257 <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
258 <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
260 { <FN>, color = "grey20" }
265 alias <AC00> = <LCTL>;