blog.zapster.cc

random notes...

UK keyboard layout with German umlauts

Add to /usr/share/X11/xkb/symbols/gb:

(gb_umlaut) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// based on a keyboard map from an 'xkb/symbols/gb' file

default  partial alphanumeric_keys
xkb_symbols "umlaut" {

    // Describes the differences between a very simple en_US
    // keyboard and a very simple U.K. keyboard layout defined by
    // the SVR4 European Language Supplement and sometimes also
    // known as the IBM 166 layout.

    // This add support for german umlauts

    include "latin"

    name[Group1]="English (UK, with German umlauts)";

    key <AE02>  { [         2,   quotedbl,  twosuperior,    oneeighth ] };
    key <AE03>  { [         3,   sterling, threesuperior,    sterling ] };
    key <AE04>  { [         4,     dollar,     EuroSign,   onequarter ] };

    key <AD07> { [   u,                 U,          U00FC,      U00DC ] };
    key <AD09> { [   o,                 O,          U00F6,      U00D6 ] };
    key <AC01> { [   a,                 A,          U00E4,      U00C4 ] };

    key <AC11>  { [apostrophe,         at, dead_circumflex, dead_caron] };
    key <TLDE>  { [     grave,    notsign,          bar,          bar ] };

    key <BKSL>  { [numbersign, asciitilde,   dead_grave,   dead_breve ] };
    key <LSGT>  { [ backslash,        bar,          bar,    brokenbar ] };

    include "level3(ralt_switch_multikey)"
};

Add to /usr/share/X11/xkb/rules/evdev.xml:

evdev.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 ...
 <configItem>
   <name>gb</name>

    <shortDescription>en</shortDescription>
    <description>English (UK)</description>
    <languageList>
      <iso639Id>eng</iso639Id>
    </languageList>
  </configItem>
  <variantList>

<!--- new content -->
    <variant>
      <configItem>
        <name>umlaut</name>
        <description>English (UK, with German umlauts)</description>
      </configItem>
    </variant>
<!--- end new content -->

    <variant>
      ...

Comments