Skip to content

Commit

Permalink
Ukrainian keymap (#269)
Browse files Browse the repository at this point in the history
* add ukrainian layout

* update keymap

* fix keymaps order
  • Loading branch information
ch3rny authored Sep 29, 2024
1 parent fb6588b commit a967147
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
46 changes: 46 additions & 0 deletions src/main/python/keymap/ukrainian.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding: utf-8

keymap = {
"KC_GRAVE": "~ ₴\n` ʼ",
"KC_2": '@ "\n2',
"KC_3": "# №\n3",
"KC_4": "$ ;\n4",
"KC_6": "^ :\n6",
"KC_7": "& ?\n7",
"KC_Q": "Q\nЙ",
"KC_W": "W\nЦ",
"KC_E": "E\nУ",
"KC_R": "R\nК",
"KC_T": "T\nЕ",
"KC_Y": "Y\nН",
"KC_U": "U\nГ",
"KC_I": "I\nШ",
"KC_O": "O\nЩ",
"KC_P": "P\nЗ",
"KC_LBRACKET": "{\n[ Х",
"KC_RBRACKET": "}\n] Ї",
"KC_BSLASH": "| /\n\\ \\",
"KC_A": "A\nФ",
"KC_S": "S\nІ",
"KC_D": "D\nВ",
"KC_F": "F\nА",
"KC_G": "G\nП",
"KC_H": "H\nР",
"KC_J": "J\nО",
"KC_K": "K\nЛ",
"KC_L": "L\nД",
"KC_SCOLON": ":\n; Ж",
"KC_QUOTE": "\"\n' Є",
"KC_Z": "Z\nЯ",
"KC_X": "X\nЧ",
"KC_C": "C\nС",
"KC_V": "V\nМ",
"KC_B": "B\nИ",
"KC_N": "N\nТ",
"KC_M": "M\nЬ",
"KC_COMMA": "<\n, Б",
"KC_DOT": ">\n. Ю",
"KC_SLASH": "? ,\n/ .",
"KC_NONUS_HASH": "~ /\n# \\",
"KC_NONUS_BSLASH": "|\n\\ Ґ",
}
5 changes: 3 additions & 2 deletions src/main/python/keymaps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from keycodes.keycodes import Keycode
from keymap import brazilian, canadian_csa, colemak, danish, eurkey, french, german, hebrew, hungarian, italian, japanese, latam, norwegian, russian, slovak, spanish, swedish, swedish_swerty, swiss, turkish, croatian
from keymap import brazilian, canadian_csa, colemak, danish, eurkey, french, german, hebrew, hungarian, italian, japanese, latam, norwegian, russian, slovak, spanish, swedish, swedish_swerty, swiss, turkish, ukrainian, croatian

KEYMAPS = [
("QWERTY", dict()),
Expand All @@ -24,7 +24,8 @@
("Swedish (QWERTY)", swedish.keymap),
("Swedish (SWERTY)", swedish_swerty.keymap),
("Swiss (QWERTZ)", swiss.keymap),
("Turkish (QWERTY)", turkish.keymap)
("Turkish (QWERTY)", turkish.keymap),
("Ukrainian (ЙЦУКЕН)", ukrainian.keymap)
]

# make sure that qmk IDs we used are all correct
Expand Down

0 comments on commit a967147

Please sign in to comment.