gb revision 9d99ee05
1// based on a keyboard map from an 'xkb/symbols/gb' file
2
3default  partial alphanumeric_keys
4xkb_symbols "basic" {
5
6    // Describes the differences between a very simple en_US
7    // keyboard and a very simple U.K. keyboard layout defined by
8    // the SVR4 European Language Supplement and sometimes also
9    // known as the IBM 166 layout.
10
11    include "latin"
12
13    name[Group1]="English (UK)";
14
15    key <AE02>	{ [         2,   quotedbl,  twosuperior,    oneeighth ]	};
16    key <AE03>	{ [         3,   sterling, threesuperior,    sterling ]	};
17    key <AE04>	{ [         4,     dollar,     EuroSign,   onequarter ]	};
18
19    key <AC11>	{ [apostrophe,         at, dead_circumflex, dead_caron]	};
20    key <TLDE>	{ [     grave,    notsign,          bar,          bar ]	};
21
22    key <BKSL>	{ [numbersign, asciitilde,   dead_grave,   dead_breve ]	};
23    key <LSGT>	{ [ backslash,        bar,          bar,    brokenbar ]	};
24
25    include "level3(ralt_switch_multikey)"
26};
27
28partial alphanumeric_keys
29xkb_symbols "intl" { 
30
31    // Describes the differences between a very simple en_US 
32    // keyboard and a very simple U.K. keyboard layout with 
33    // dead keys. By Phil Jones (philjones1@blueyonder.co.uk) 
34
35    // Includes the following keys: 
36    // dead_grave 
37    // dead_acute 
38    // dead_circumflex 
39    // dead_tilde 
40    // dead_diaeresis 
41
42    include "latin" 
43
44    name[Group1]="English (UK, intl., with dead keys)";
45
46    key <AE02>  { [   2,  dead_diaeresis,      twosuperior,     onehalf ] };
47    key <AE03>  { [   3,        sterling,    threesuperior,    onethird ] };
48    key <AE04>  { [   4,          dollar,         EuroSign,  onequarter ] };
49    key <AE06>  { [   6, dead_circumflex,         NoSymbol,    onesixth ] };
50
51    key <AC11>  { [ dead_acute,         at,     apostrophe,         bar ] };
52    key <TLDE>  { [ dead_grave,    notsign,            bar,         bar ] };
53
54    key <BKSL>  { [ numbersign, dead_tilde,            bar,         bar ] };
55    key <LSGT>  { [  backslash,        bar,            bar,         bar ] };
56
57    include "level3(ralt_switch)"
58};
59
60partial alphanumeric_keys
61xkb_symbols "extd" {
62    // Clone of the Microsoft "English (UK, Extended" layout, which
63    // includes dead keys for: grave; diaeresis; circumflex; tilde; and
64    // accute. It also enables direct access to accute characters using
65    // the Multi_key (Alt Gr).
66    //
67    // Taken from...
68    //    "Windows Keyboard Layouts"
69    //    http://msdn.microsoft.com/en-us/goglobal/bb964651.aspx
70    //
71    // -- Jonathan Miles <jon@cybah.co.uk>
72
73    include "latin"
74
75    name[Group1]="English (UK, extended, with Win keys)";
76
77    key <TLDE> { [ dead_grave,    notsign,       brokenbar,    NoSymbol ] };
78
79    key <AE02> { [     2,        quotedbl,  dead_diaeresis,     onehalf ] };
80    key <AE03> { [     3,        sterling,   threesuperior,    onethird ] };
81    key <AE04> { [     4,          dollar,        EuroSign,  onequarter ] };
82    key <AE06> { [     6,     asciicircum, dead_circumflex,    NoSymbol ] };
83
84    key <AD02> { [   w,                 W,          wacute,      Wacute ] };
85    key <AD03> { [   e,                 E,          eacute,      Eacute ] };
86    key <AD06> { [   y,                 Y,          yacute,      Yacute ] };
87    key <AD07> { [   u,                 U,          uacute,      Uacute ] };
88    key <AD08> { [   i,                 I,          iacute,      Iacute ] };
89    key <AD09> { [   o,                 O,          oacute,      Oacute ] };
90
91    key <AC01> { [   a,                 A,          aacute,      Aacute ] };
92    key <AC11> { [  apostrophe,         at,     dead_acute,    NoSymbol ] };
93
94    key <AB03> { [   c,                 C,        ccedilla,    Ccedilla ] };
95
96    key <BKSL>  { [ numbersign, asciitilde,     dead_tilde,    NoSymbol ] };
97    key <LSGT>  { [  backslash,        bar,       NoSymbol,    NoSymbol ] };
98
99    include "level3(ralt_switch)"
100};
101
102// Describe the differences between the US Colemak layout
103// and a UK variant. By Andy Buckley (andy@insectnation.org)
104
105partial alphanumeric_keys
106xkb_symbols "colemak" {
107    include "us(colemak)"
108
109    name[Group1]="English (UK, Colemak)";
110
111    key <AE02>	{ [         2,   quotedbl,  twosuperior,    oneeighth ]	};
112    key <AE03>	{ [         3,   sterling, threesuperior,    sterling ]	};
113    key <AE04>	{ [         4,     dollar,     EuroSign,   onequarter ]	};
114
115    key <AC11>	{ [apostrophe,         at, dead_circumflex, dead_caron]	};
116    key <TLDE>	{ [     grave,    notsign,          bar,          bar ]	};
117
118    key <BKSL>	{ [numbersign, asciitilde,   dead_grave,   dead_breve ]	};
119    key <LSGT>	{ [ backslash,        bar,          bar,    brokenbar ]	};
120
121    include "level3(ralt_switch_multikey)"
122};
123
124
125// Dvorak (UK) keymap (by odaen) allowing the usage of
126// the £ and ? key and swapping the @ and " keys.
127
128partial alphanumeric_keys
129xkb_symbols "dvorak" {
130    include "us(dvorak-alt-intl)"
131
132    name[Group1]="English (UK, Dvorak)";
133
134    key <AD01> { [ apostrophe,	at		] };
135    key <AE02> { [	    2,	quotedbl,  twosuperior,   NoSymbol	] };
136    key <AE03> { [	    3,	sterling,  threesuperior, NoSymbol	] };
137    key <BKSL> { [ numbersign,	asciitilde	] };
138    key <LSGT> { [  backslash,	bar		] };
139    key <TLDE> { [	grave,	notsign,   bar,           bar		] };
140};
141
142// Dvorak letter positions, but punctuation all in the normal UK positions.
143partial alphanumeric_keys
144xkb_symbols "dvorakukp" {
145    include "gb(dvorak)"
146
147    name[Group1]="English (UK, Dvorak, with UK punctuation)";
148
149    key <AE11> {        [     minus,    underscore      ]       };
150    key <AE12> {        [     equal,    plus            ]       };
151    key <AD11> {        [ bracketleft,  braceleft       ]       };
152    key <AD12> {        [ bracketright, braceright      ]       };
153    key <AD01> {        [ slash,        question        ]       };
154    key <AC11> {        [apostrophe,    at,         dead_circumflex, dead_caron] };
155};
156
157// Copied from macintosh_vndr/gb
158partial alphanumeric_keys
159xkb_symbols "mac" {
160
161    // Describes the differences between a very simple en_US
162    // keyboard and a very simple U.K. keyboard layout
163
164    include "latin"
165
166    name[Group1]= "English (UK, Macintosh)";
167
168    key <AE02> {	[               2,              at,         EuroSign	]	};
169    key <AE03> {	[               3,        sterling,       numbersign	]	};
170    key <TLDE> {	[         section,       plusminus ]	};
171    key <LSGT> {	[           grave,      asciitilde ]	};
172
173    include "level3(ralt_switch)"
174    include "level3(enter_switch)"
175};
176
177
178partial alphanumeric_keys
179xkb_symbols "mac_intl" { 
180
181    include "latin" 
182
183    name[Group1]="English (UK, intl., Macintosh)";
184
185    key <AE02>  { [   2,                       at,           EuroSign,    onehalf ] };
186    key <AE03>  { [   3,                 sterling,        twosuperior,   onethird ] };
187    key <AE04>  { [   4,                   dollar,      threesuperior, onequarter ] };
188    key <AE06>  { [   6,          dead_circumflex,           NoSymbol,   onesixth ] };
189    key <AD09>    { [   o,                        O,                 oe,       OE ] };
190
191    key <AC11>  { [ dead_acute,    dead_diaeresis,     dead_diaeresis,        bar ] }; //dead_doubleacute
192    key <TLDE>  { [ section,            plusminus,            notsign,    notsign ] }; //dead_grave
193
194    key <BKSL>  { [ backslash,                bar,         numbersign,        bar ] };
195    key <LSGT>  { [ dead_grave,        dead_tilde,          brokenbar,        bar ] };
196
197    include "level3(ralt_switch)"
198};
199
200partial alphanumeric_keys
201xkb_symbols "pl" {
202
203    // Polish layout based on British keyboard
204    // Adopted 2016 by Aleksander Kowalski
205    
206    include "latin"
207    
208    name[Group1]="Polish (British keyboard)";
209
210    key <AE02>{ [         2,   quotedbl,  twosuperior,    oneeighth ]};
211    key <AE03>{ [         3,   sterling, threesuperior,    sterling ]};
212    key <AE04>{ [         4,     dollar,     EuroSign,   onequarter ]};
213    
214    key <AC11>{ [apostrophe,         at, dead_circumflex, dead_caron]};
215    key <TLDE>{ [     grave,    notsign,          bar,          bar ]};
216    
217    key <BKSL>{ [numbersign, asciitilde,   dead_grave,   dead_breve ]};
218    key <LSGT>{ [ backslash,        bar,          bar,    brokenbar ]};
219    
220    key <AD01>  { [         q,          Q ] };
221    key <AD02>  { [         w,          W ] };
222    key <AD03>{ [         e,          E,      eogonek,      Eogonek ]   };
223    key <AD09>  { [         o,          O,       oacute,       Oacute ] };
224    
225    key <AC01>  { [         a,          A,      aogonek,      Aogonek ] };
226    key <AC02>  { [         s,          S,       sacute,       Sacute ] };
227    key <AC04>  { [         f,          F ] };
228    
229    key <AB01>  { [         z,          Z,    zabovedot,    Zabovedot ] };
230    key <AB02>  { [         x,          X,       zacute,       Zacute ] };
231    key <AB03>  { [         c,          C,       cacute,       Cacute ] };
232    key <AB06>  { [         n,          N,       nacute,       Nacute ] };
233    
234    
235    include "level3(ralt_switch)"
236};
237
238// EXTRAS:
239
240partial alphanumeric_keys
241	xkb_symbols "sun_type6" {
242	include "sun_vndr/gb(sun_type6)"
243};
244