• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// -*- indent-tabs-mode: nil -*-
2
3// Created by Alexander Pohoyda <alexander.pohoyda@gmx.net>
4// Geometry specification for Chicony KB-9820 keyboard.
5
6// 86 keys
7default xkb_geometry "us" {
8    description = "Chicony KB-9820 infra-red keyboard";
9    width = 350;
10    height = 180;
11    //baseColor = "grey60";
12    labelColor = "white";
13
14    shape "EDGE" { cornerRadius = 25,
15                   { [0, 8], [142.5, 0], [202.5, 0], [347, 8],
16                     [347, 60], [327, 100], [322, 160],
17                     [202.5, 165], [142.5, 165],
18                     [25, 160], [20, 100], [0, 60] } };
19    shape "KEYS" { cornerRadius = 2, { [271, 109] } };
20    shape "MOUS" { cornerRadius = 12, { [24, 24] } };
21    shape "MOUS2" { cornerRadius = 9, { [18, 18] } };
22    shape "BTNS"  { cornerRadius = 5, { [10, 10] } };
23
24    solid "Edges" {
25        top = 0;
26        left = 0;
27        shape = "EDGE";
28	color = "grey60";
29    };
30
31    solid "KeyPanel" {
32	shape = "KEYS";
33	left = 38;
34	top = 22;
35	color = "black";
36    };
37
38    solid "Mouse" {
39        shape = "MOUS";
40        left = 315;
41        top = 30;
42        color = "grey30";
43    };
44
45    outline "Mouse2" {
46        shape = "MOUS2";
47        left = 318;
48        top = 33;
49        color = "black";
50    };
51
52    solid "Button1" {
53        shape = "BTNS";
54        left = 10;
55        top = 32;
56        color = "grey30";
57    };
58
59    solid "Button2" {
60        shape = "BTNS";
61        left = 20;
62        top = 42;
63        color = "grey30";
64    };
65
66    outline "Buttons" {
67        shape = "MOUS";
68        left = 8;
69        top = 30;
70        color = "black";
71    };
72
73    shape.cornerRadius = 1;
74    shape "ESC"    { { [17, 12] }, { [1.5, 0], [15.5, 10] } };
75    shape "SMALL"  { { [15, 12] }, { [1.5, 0], [13.5, 10] } };
76    shape "THIN"   { { [14, 18] }, { [2, 0], [12, 15] } };
77    shape "NARR"   { { [16, 18] }, { [2, 0], [14, 15] } };
78    shape "NORM"   { { [17, 18] }, { [2, 0], [15, 15] } };
79    shape "WIDER"  { { [18, 18] }, { [2, 0], [16, 15] } };
80    shape "CAPS"   { { [22, 18] }, { [2, 0], [20, 15] } };
81    shape "RTSH"   { { [23, 18] }, { [2, 0], [21, 15] } };
82    shape "WIDEST" { { [30, 18] }, { [2, 0], [28, 15] } };
83    shape "SPCE"   { { [68, 18] }, { [2, 0], [66, 15] } };
84
85    section "Function" {
86	key.shape = "SMALL";
87	key.gap = 0.79;
88	key.color = "grey60";
89	left = 38;
90	top = 22;
91	row {
92	    top = 1;
93	    keys {  { <ESC>, shape="ESC", 1 },
94	    	    { <FK01>, 1.5 }, <FK02>, <FK03>, <FK04>,
95		    <FK05>, <FK06>, <FK07>, <FK08>,
96		    <FK09>, <FK10>, <FK11>, <FK12>,
97		    <NMLK>, <PRSC>, <SCLK>, <PAUS>
98	    };
99	};
100    }; // End of "Function" section
101
102    section "Control" {
103	key.shape = "NORM";
104	key.gap = 1;
105	key.color = "grey60";
106        left = 38;
107	top = 111;
108	row {
109	    top = 1;
110	    keys { <EASY>, <LCTL>, <LWIN>, <LALT>,
111	           { <SPCE>, shape="SPCE" },
112                   <RALT>,
113                   { <RWIN>, shape="THIN" },
114                   { <MENU>, shape="THIN" },
115                   { <INS>, shape="THIN" },
116                   { <DELE>, shape="THIN" } };
117	};
118    }; // End of "Control" section
119
120    section "Editing" {
121        key.shape = "NORM";
122	key.gap = 1;
123	key.color = "grey60";
124	left = 291;
125	top = 34;
126        row.vertical = True;
127	row {
128	    top = 1;
129	    keys { <HOME>, <PGUP>, <PGDN>, <END> };
130	};
131    }; // End of "Editing" section
132
133    section "Navigation" {
134	key.gap = 1;
135	key.shape = "NARR";
136	key.color = "grey60";
137	left = 257;
138	top = 92;
139	row {
140	    left = 16;
141	    top = 1;
142	    keys { <UP> };
143	};
144	row {
145	    top = 20;
146	    keys { <LEFT>, <DOWN>, <RGHT> };
147	};
148    }; // End of "Navigation" section
149
150    section "Alpha" {
151	key.gap = 1;
152	key.shape = "NORM";
153	key.color = "grey60";
154        left = 38;
155	top = 35;
156	row {
157	    top = 1;
158	    keys { { <TLDE>, shape="NARR" },
159                   <AE01>, <AE02>, <AE03>, <AE04>,
160		   <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
161		   <AE10>, <AE11>, <AE12>, { <BKSP>, shape="WIDER" }
162	    };
163	};
164	row {
165	    top = 20;
166	    keys { <TAB>,
167		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
168		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
169		   <AD11>, <AD12>, <AD13>
170	    };
171	};
172	row {
173	    top = 39;
174	    keys { { <CAPS>, shape="CAPS" },
175		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
176		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
177		   <AC11>, { <RTRN>, shape="WIDEST" }
178	    };
179	};
180	row {
181	    top = 58;
182	    keys { { <LFSH>, shape="WIDEST" },
183		    <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
184		    <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
185		    { <RTSH>, shape="RTSH" }
186	    };
187	};
188    }; // End of "Alpha" section
189};
190