From 230395db6bd76024d3004d91565e0277720a4c9b Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 27 Jun 2017 12:19:10 +0300 Subject: [PATCH] ducky_mini keyboard layout added --- ducky_mini | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 ducky_mini diff --git a/ducky_mini b/ducky_mini new file mode 100644 index 0000000..ffed316 --- /dev/null +++ b/ducky_mini @@ -0,0 +1,72 @@ +// This is a wip layout that mimicks ducky shine mini keyboard layout. +// Uses us standard and ru typewriter keyboard layouts. +// WIP, should be used with lv3 and grp switches +// Has to be copied to /usr/share/X11/xkb/symbols/ducky_mini + +default partial alphanumeric_keys modifier_keys +xkb_symbols "us" { + name[Group1]="English (US, with a layout mimicking the Ducky Mini)"; + + include "us(basic)" + + key { [ Escape, asciitilde, grave ] }; + key { [ 1, exclam, F1 ] }; + key { [ 2, at, F2 ] }; + key { [ 3, numbersign, F3 ] }; + key { [ 4, dollar, F4 ] }; + key { [ 5, percent, F5 ] }; + key { [ 6, asciicircum, F6 ] }; + key { [ 7, ampersand, F7 ] }; + key { [ 8, asterisk, F8 ] }; + key { [ 9, parenleft, F9 ] }; + key { [ 0, parenright, F10 ] }; + key { [ minus, underscore, F11 ] }; + key { [ equal, plus, F12 ] }; + + key { [ o, O, Up ] }; + key { [ k, K, Left ] }; + key { [ l, L, Down ] }; + key { [ semicolon, colon, Right ] }; + + key { [ j, J, Prior ] }; + key { [ m, M, Next ] }; + key { [ comma, less, Home ] }; + key { [ period, greater, End ] }; + + key { [ backslash, bar, Insert ] }; + key { [ BackSpace, BackSpace, Delete ] }; +}; + +partial alphanumeric_keys +xkb_symbols "ru" { + name[Group1]= "Russian (RU, with a layout mimicking the Ducky Mini)"; + + include "ru(typewriter)" + + key { [ Escape, plus, bar ] }; + key { [ numerosign, 1, F1 ] }; + key { [ minus, 2, F2 ] }; + key { [ slash, 3, F3 ] }; + key { [ quotedbl, 4, F4 ] }; + key { [ colon, 5, F5 ] }; + key { [ comma, 6, F6 ] }; + key { [ period, 7, F7 ] }; + key { [ underscore, 8, F8 ] }; + key { [ question, 9, F9 ] }; + key { [ percent, 0, F10 ] }; + key { [ exclam, equal, F11 ] }; + key { [ semicolon, backslash, F12 ] }; + + key { [ Cyrillic_shcha, Cyrillic_SHCHA, Up ] }; + key { [ Cyrillic_el, Cyrillic_EL, Left ] }; + key { [ Cyrillic_de, Cyrillic_DE, Down ] }; + key { [ Cyrillic_zhe, Cyrillic_ZHE, Right ] }; + + key { [ Cyrillic_o, Cyrillic_O, Prior ] }; + key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, Next ] }; + key { [ Cyrillic_be, Cyrillic_BE, Home ] }; + key { [ Cyrillic_yu, Cyrillic_YU, End ] }; + + key { [ parenright, parenleft, Insert ] }; + key { [ BackSpace, BackSpace, Delete ] }; +};