Skip to content

Instantly share code, notes, and snippets.

@joshm21
Created August 27, 2020 15:10
Show Gist options
  • Save joshm21/1d2a01112c3c3bae7e101b433c814106 to your computer and use it in GitHub Desktop.
Save joshm21/1d2a01112c3c3bae7e101b433c814106 to your computer and use it in GitHub Desktop.
Russian Phonetic (Student, AATSEEL, YaShert, яшерт) Keyboard for Linux
// Navigate to /usr/share/X11/xkb/symbols/us
// Adjust the Russian section to match below and reboot
// Change your keyboard layout to include the "Russian (US, Phonetic)"
// See layout image at http://winrus.com/print_e.htm
// phonetic layout for Russian letters on an US keyboard
// by Ivan Popov <[email protected]> 2005-07-17
// level3 modifier is a shortcut to the "us" meaning of the keys where
// we place cyrillic letters, handy for accessing the corresponding
// punctuation marks.
// It is important to have access to punctuation marks, and the rest of
// alphabetical keys are added for being consequent so that the users
// can expect the level3 modifier to give what the key label shows.
partial alphanumeric_keys
xkb_symbols "rus" {
include "us(basic)"
name[Group1]= "Russian (US, phonetic)";
key.type[group1]="FOUR_LEVEL_ALPHABETIC";
key <LatA> { [ Cyrillic_a, Cyrillic_A ] };
key <LatB> { [ Cyrillic_be, Cyrillic_BE ] };
key <LatW> { [ Cyrillic_sha, Cyrillic_SHA ] };
key <LatG> { [ Cyrillic_ghe, Cyrillic_GHE ] };
key <LatD> { [ Cyrillic_de, Cyrillic_DE ] };
key <LatE> { [ Cyrillic_ie, Cyrillic_IE ] };
key <TLDE> { [ Cyrillic_io, Cyrillic_IO, grave, asciitilde ] };
key <LatV> { [ Cyrillic_ve, Cyrillic_VE ] };
key <LatZ> { [ Cyrillic_ze, Cyrillic_ZE ] };
key <LatI> { [ Cyrillic_i, Cyrillic_I ] };
key <LatJ> { [ Cyrillic_shorti, Cyrillic_SHORTI ] };
key <LatK> { [ Cyrillic_ka, Cyrillic_KA ] };
key <LatL> { [ Cyrillic_el, Cyrillic_EL ] };
key <LatM> { [ Cyrillic_em, Cyrillic_EM ] };
key <LatN> { [ Cyrillic_en, Cyrillic_EN ] };
key <LatO> { [ Cyrillic_o, Cyrillic_O ] };
key <LatP> { [ Cyrillic_pe, Cyrillic_PE ] };
key <LatR> { [ Cyrillic_er, Cyrillic_ER ] };
key <LatS> { [ Cyrillic_es, Cyrillic_ES ] };
key <LatT> { [ Cyrillic_te, Cyrillic_TE ] };
key <LatU> { [ Cyrillic_u, Cyrillic_U ] };
key <LatF> { [ Cyrillic_ef, Cyrillic_EF ] };
key <LatH> { [ Cyrillic_che, Cyrillic_CHE ] };
key <LatC> { [ Cyrillic_tse, Cyrillic_TSE ] };
key <AC10> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, semicolon, colon ] };
key <AD11> { [ Cyrillic_yu, Cyrillic_YU, bracketleft, braceleft] };
key <AD12> { [ Cyrillic_shcha, Cyrillic_SHCHA, bracketright, braceright ] };
key <AE12> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, equal, plus ] };
key <LatY> { [ Cyrillic_yeru, Cyrillic_YERU ] };
key <LatX> { [ Cyrillic_ha, Cyrillic_HA ] };
key <BKSL> { [ Cyrillic_e, Cyrillic_E, backslash, bar ] };
key <AC11> { [ Cyrillic_zhe, Cyrillic_ZHE, apostrophe, quotedbl ] };
key <LatQ> { [ Cyrillic_ya, Cyrillic_YA ] };
key <AE04> { [ 4, quotedbl] };
key <AE05> { [ 5, colon] };
include "level3(ralt_switch)"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment