Skip to content

Instantly share code, notes, and snippets.

@kosivantsov
Created Dec 24, 2020
Embed
What would you like to do?
custom Ukrainian xkb layout
//////////////////////////////
// Custom Ukrainian Layout //
/////////////////////////////
partial alphanumeric_keys
xkb_symbols "twunicode"
{
name[Group1] = "Ukraine (twunicode)";
include "level3(ralt_switch)"
key <AB01> { [ Cyrillic_ya, Cyrillic_YA ] }; // я Я
key <AB02> { [ Cyrillic_che, Cyrillic_CHE ] }; // ч Ч
key <AB03> { [ Cyrillic_es, Cyrillic_ES, copyright ] }; // с С ©
key <AB04> { [ Cyrillic_em, Cyrillic_EM ] }; // м М
key <AB05> { [ Cyrillic_i, Cyrillic_I ] }; // и И
key <AB06> { [ Cyrillic_te, Cyrillic_TE ] }; // т Т
key <AB07> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; // ь Ь
key <AB08> { [ Cyrillic_be, Cyrillic_BE, guillemotleft, doublelowquotemark ] }; // б Б
key <AB09> { [ Cyrillic_yu, Cyrillic_YU, guillemotright, leftdoublequotemark ] }; // ю Ю
key <AB10> { [ U0491, U0490 ] }; // ґ Ґ
key <AC01> { [ Cyrillic_ef, Cyrillic_EF ] }; // ф Ф
key <AC02> { [ U0456, U0406, U044B, U042B ] }; // і І ы Ы
key <AC03> { [ Cyrillic_ve, Cyrillic_VE ] }; // в В
key <AC04> { [ Cyrillic_a, Cyrillic_A, at ] }; // а А @
key <AC05> { [ Cyrillic_pe, Cyrillic_PE ] }; // п П
key <AC06> { [ Cyrillic_er, Cyrillic_ER ] }; // р Р
key <AC07> { [ Cyrillic_o, Cyrillic_O ] }; // о О
key <AC08> { [ Cyrillic_el, Cyrillic_EL ] }; // л Л
key <AC09> { [ Cyrillic_de, Cyrillic_DE ] }; // д Д
key <AC10> { [ Cyrillic_zhe, Cyrillic_ZHE ] }; // ж Ж
key <AC11> { [ U0454, U0404, U044D, U042D ] }; // є Є э Э
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, registered ] }; // к К ®
key <AD05> { [ Cyrillic_ie, Cyrillic_IE, U0451, U0401 ] }; // е Е ё Ё
key <AD06> { [ Cyrillic_en, Cyrillic_EN ] }; // н Н
key <AD07> { [ Cyrillic_ghe, Cyrillic_GHE ] }; // г Г
key <AD08> { [ Cyrillic_sha, Cyrillic_SHA ] }; // ш Ш
key <AD09> { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; // щ Щ
key <AD10> { [ Cyrillic_ze, Cyrillic_ZE ] }; // з З
key <AD11> { [ Cyrillic_ha, Cyrillic_HA ] }; // х Х
key <AD12> { [ U0457, U0407, U044A, U042A ] }; // ї Ї ъ Ъ
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> { [ U2019, apostrophe, U0301, asciitilde ] }; // ’'́ ~
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment