Skip to content

Instantly share code, notes, and snippets.

@nermolov
Last active April 5, 2018 23:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nermolov/2e30b53cbbd684f0ed8da40d5c512bc8 to your computer and use it in GitHub Desktop.
Save nermolov/2e30b53cbbd684f0ed8da40d5c512bc8 to your computer and use it in GitHub Desktop.
MTGAP on Linux (xkbmap)

MTGAP on Linux!

  1. Add the contents of us below to the end of /usr/share/X11/xkb/symbols/us
  2. Add the contents of base.lst below to the end of /usr/share/X11/xkb/rules/base.lst
  3. Add the <variant>....</variant> block in base.xml below to /usr/share/X11/xkb/rules/base.xml (under the variantList for English)
  4. Copy /usr/share/X11/xkb/rules/base.lst to /usr/share/X11/xkb/rules/evdev.lst and /usr/share/X11/xkb/rules/base.xml to /usr/share/X11/xkb/rules/evdev.xml
  5. Reboot
  6. Choose layout in the layout manager for your WM and enable it!

Issues

  • Caps is not mapped to backspace (something modifier)
mtgap us: English (MTGAP)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd">
<xkbConfigRegistry version="1.1">
<modelList>
....
</modelList>
<layoutList>
<layout>
<configItem>
<name>us</name>
<shortDescription>en</shortDescription>
<description>English (US)</description>
<languageList>
<iso639Id>eng</iso639Id>
</languageList>
</configItem>
<variantList>
....
<variant>
<configItem>
<name>mtgap</name>
<description>English (MTGAP)</description>
</configItem>
</variant>
</variantList>
</layout>
....
</layoutList>
<optionList>
....
</optionList>
</xkbConfigRegistry>
partial alphanumeric_keys
xkb_symbols "mtgap" {
name[Group1]= "English (MTGAP)";
key <TLDE> { [ backslash, asciicircum ] };
key <AE01> { [ 1, asciitilde ] };
key <AE02> { [ 2, bracketleft ] };
key <AE03> { [ 3, braceleft ] };
key <AE04> { [ 4, less ] };
key <AE05> { [ 5, numbersign ] };
key <AE06> { [ 6, bar ] };
key <AE07> { [ 7, percent ] };
key <AE08> { [ 8, greater ] };
key <AE09> { [ 9, braceright ] };
key <AE10> { [ 0, bracketright ] };
key <AE11> { [ q, Q ] };
key <AE12> { [ z, Z ] };
key <AD01> { [ y, Y ] };
key <AD02> { [ p, P ] };
key <AD03> { [ o, O ] };
key <AD04> { [ u, U ] };
key <AD05> { [ minus, ampersand ] };
key <AD06> { [ k, K ] };
key <AD07> { [ d, D ] };
key <AD08> { [ l, L ] };
key <AD09> { [ c, C ] };
key <AD10> { [ w, W ] };
key <AD11> { [ x, X ] };
key <AD12> { [ underscore, plus ] };
key <AC01> { [ i, I ] };
key <AC02> { [ n, N ] };
key <AC03> { [ e, E ] };
key <AC04> { [ a, A ] };
key <AC05> { [ comma, colon ] };
key <AC06> { [ m, M ] };
key <AC07> { [ h, H ] };
key <AC08> { [ t, T ] };
key <AC09> { [ s, S ] };
key <AC10> { [ r, R ] };
key <AC11> { [ quotedbl, equal ] };
key <AB01> { [ parenleft, exclam ] };
key <AB02> { [ parenright, question ] };
key <AB03> { [ apostrophe, asterisk ] };
key <AB04> { [ period, semicolon ] };
key <AB05> { [ slash, ampersand ] };
key <AB06> { [ b, B ] };
key <AB07> { [ f, F ] };
key <AB08> { [ g, G ] };
key <AB09> { [ v, V ] };
key <AB10> { [ j, J ] };
key <BKSL> { [ dollar, grave ] };
key <CAPS> { [ BackSpace, BackSpace] };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment