Skip to content

Instantly share code, notes, and snippets.

@kosivantsov
Created Dec 24, 2020
Embed
What would you like to do?
Custom Russian xkb layout
///////////////////////////
// Custom Russian Layout //
///////////////////////////
xkb_symbols "twunicode"
{
name[Group1] = "Russia (twunicode)";
key <AB01> { [ Cyrillic_ya, Cyrillic_YA, U0467, U0466 ] }; // я Я ѧ Ѧ
key <AB02> { [ Cyrillic_che, Cyrillic_CHE, Serbian_tshe, Serbian_TSHE ] }; // ч Ч ћ Ћ
key <AB03> { [ Cyrillic_es, Cyrillic_ES, copyright ] }; // с С ©
key <AB04> { [ Cyrillic_em, Cyrillic_EM ] }; // м М
key <AB05> { [ Cyrillic_i, Cyrillic_I, U045D, U040D ] }; // и И ѝ Ѝ
key <AB06> { [ Cyrillic_te, Cyrillic_TE, trademark ] }; // т Т ™
key <AB07> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, U0463, U0462 ] }; // ь Ь ѣ Ѣ
key <AB08> { [ Cyrillic_be, Cyrillic_BE, guillemotleft, doublelowquotemark ] }; // б Б « „
key <AB09> { [ Cyrillic_yu, Cyrillic_YU, guillemotright, leftdoublequotemark ] }; // ю Ю » “
key <AB10> { [ Cyrillic_io, Cyrillic_IO ] }; // ё Ё
key <AC01> { [ Cyrillic_ef, Cyrillic_EF, U0473, U0472 ] }; // ф Ф ѳ Ѳ
key <AC02> { [ Cyrillic_yeru, Cyrillic_YERU ] }; // ы Ы
key <AC03> { [ Cyrillic_ve, Cyrillic_VE, U0475, U0474 ] }; // в В ѵ Ѵ
key <AC04> { [ Cyrillic_a, Cyrillic_A, at ] }; // а А @
key <AC05> { [ Cyrillic_pe, Cyrillic_PE, U0471, U0470 ] }; // п П ѱ Ѱ
key <AC06> { [ Cyrillic_er, Cyrillic_ER, registered ] }; // р Р ®
key <AC07> { [ Cyrillic_o, Cyrillic_O, U0461, U0460 ] }; // о О ѡ Ѡ
key <AC08> { [ Cyrillic_el, Cyrillic_EL, Cyrillic_lje, Cyrillic_LJE ] }; // л Л љ Љ
key <AC09> { [ Cyrillic_de, Cyrillic_DE, Cyrillic_dzhe, Cyrillic_DZHE ] }; // д Д џ Џ
key <AC10> { [ Cyrillic_zhe, Cyrillic_ZHE, Serbian_dje, Serbian_DJE ] }; // ж Ж ђ Ђ
key <AC11> { [ Cyrillic_e, Cyrillic_E ] }; // э Э
key <AD01> { [ Cyrillic_shorti, Cyrillic_SHORTI, U0458, U0408 ] }; // й Й ј Ј
key <AD02> { [ Cyrillic_tse, Cyrillic_TSE ] }; // ц Ц
key <AD03> { [ Cyrillic_u, Cyrillic_U, U045E, U040E ] }; // у У ў Ў
key <AD04> { [ Cyrillic_ka, Cyrillic_KA, Macedonia_kje, Macedonia_KJE ] }; // к К ќ Ќ
key <AD05> { [ Cyrillic_ie, Cyrillic_IE, U0450, U0400 ] }; // е Е ѐ Ѐ
key <AD06> { [ Cyrillic_en, Cyrillic_EN, Cyrillic_nje, Cyrillic_NJE ] }; // н Н њ Њ
key <AD07> { [ Cyrillic_ghe, Cyrillic_GHE, Macedonia_gje, Macedonia_GJE ] }; // г Г ѓ Ѓ
key <AD08> { [ Cyrillic_sha, Cyrillic_SHA ] }; // ш Ш
key <AD09> { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; // щ Щ
key <AD10> { [ Cyrillic_ze, Cyrillic_ZE, Macedonia_dse, Macedonia_DSE ] }; // з З ѕ Ѕ
key <AD11> { [ Cyrillic_ha, Cyrillic_HA ] }; // х Х
key <AD12> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN ] }; // ъ Ъ
key <AE01> { [ numerosign, 1, numbersign ] }; // № 1 #
key <AE02> { [ minus, 2, emdash, endash ] }; // - 2 — –
key <AE03> { [ slash, 3, U00A7, U20B4 ] }; // / 3 § ₴
key <AE04> { [ quotedbl, 4, dollar, EuroSign ] }; // " 4 $ €
key <AE05> { [ colon, 5, asterisk, enfilledcircbullet ] }; // : 5 * •
key <AE06> { [ comma, 6, less, greater ] }; // , 6 < >
key <AE07> { [ period, 7, ellipsis, ampersand ] }; // . 7 … &
key <AE08> { [ underscore, 8, braceright, braceleft ] }; // _ 8 } {
key <AE09> { [ question, 9, NoSymbol, questiondown ] }; // ? 9 ¿
key <AE10> { [ percent, 0, U2030, degree ] }; // % 0 ‰ °
key <AE11> { [ exclam, equal, exclamdown, notequal ] }; // ! = ¡ ≠
key <AE12> { [ semicolon, plus, asciicircum, plusminus ] }; // ; + ^ ±
key <BKSL> { [ parenright, parenleft, bracketright, bracketleft ] }; // ) ( ] [
key <LSGT> { [ backslash, bar ] }; // \ |
key <TLDE> { [ apostrophe, U2019, U0301, asciitilde ] }; // ' ’ ́ ~
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment