From 45cacb251c65a988cfa15d7eb515588657fdc1e4 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 27 Jun 2017 15:35:58 +0300 Subject: [PATCH] ducky_mini perfection --- ducky_mini | 125 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 72 insertions(+), 53 deletions(-) diff --git a/ducky_mini b/ducky_mini index ffed316..44a8f56 100644 --- a/ducky_mini +++ b/ducky_mini @@ -1,72 +1,91 @@ -// 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 +default partial alphanumeric_keys xkb_symbols "us" { name[Group1]="English (US, with a layout mimicking the Ducky Mini)"; include "us(basic)" + include "ducky_mini(common)" - 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 { [ Escape, asciitilde, grave, Escape ] }; + key { [ 1, exclam, F1, F1 ] }; + key { [ 2, at, F2, F2 ] }; + key { [ 3, numbersign, F3, F3 ] }; + key { [ 4, dollar, F4, F4 ] }; + key { [ 5, percent, F5, F5 ] }; + key { [ 6, asciicircum, F6, F6 ] }; + key { [ 7, ampersand, F7, F7 ] }; + key { [ 8, asterisk, F8, F8 ] }; + key { [ 9, parenleft, F9, F9 ] }; + key { [ 0, parenright, F10, F10 ] }; + key { [ minus, underscore, F11, F11 ] }; + key { [ equal, plus, F12, F12 ] }; - key { [ o, O, Up ] }; - key { [ k, K, Left ] }; - key { [ l, L, Down ] }; - key { [ semicolon, colon, Right ] }; + key { [ o, O, Up, Up ] }; + key { [ p, P, Print, Sys_Req ] }; + key { [ bracketleft, braceleft, Scroll_Lock, Scroll_Lock ] }; + key { [ bracketright, braceright, Pause, Break ] }; - key { [ j, J, Prior ] }; - key { [ m, M, Next ] }; - key { [ comma, less, Home ] }; - key { [ period, greater, End ] }; + key { [ j, J, Prior, Prior ] }; + key { [ k, K, Left, Left ] }; + key { [ l, L, Down, Down ] }; + key { [ semicolon, colon, Right, Right ] }; + key { [ apostrophe, quotedbl, Menu, Menu ] }; - key { [ backslash, bar, Insert ] }; - key { [ BackSpace, BackSpace, Delete ] }; + key { [ m, M, Next, Next ] }; + key { [ comma, less, Home, Home ] }; + key { [ period, greater, End, End ] }; + + key { [ backslash, bar, Insert, Insert ] }; + key { [ BackSpace, BackSpace, Delete, Delete ] }; }; partial alphanumeric_keys xkb_symbols "ru" { - name[Group1]= "Russian (RU, with a layout mimicking the Ducky Mini)"; + name[Group1]= "Russian (RU typewriter, with a layout mimicking the Ducky Mini)"; include "ru(typewriter)" + include "ducky_mini(common)" - 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 { [ Escape, plus, bar, Escape ] }; + key { [ numerosign, 1, F1, F1 ] }; + key { [ minus, 2, F2, F2 ] }; + key { [ slash, 3, F3, F3 ] }; + key { [ quotedbl, 4, F4, F4 ] }; + key { [ colon, 5, F5, F5 ] }; + key { [ comma, 6, F6, F6 ] }; + key { [ period, 7, F7, F7 ] }; + key { [ underscore, 8, F8, F8 ] }; + key { [ question, 9, F9, F9 ] }; + key { [ percent, 0, F10, F10 ] }; + key { [ exclam, equal, F11, F11 ] }; + key { [ semicolon, backslash, F12, 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_shcha, Cyrillic_SHCHA, Up ] }; + key { [ Cyrillic_ze, Cyrillic_ZE, Print, Sys_Req ] }; + key { [ Cyrillic_ha, Cyrillic_HA, Scroll_Lock, Scroll_Lock ] }; + key { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, Pause, Break ] }; - 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 { [ Cyrillic_o, Cyrillic_O, Prior, Prior ] }; + key { [ Cyrillic_el, Cyrillic_EL, Left, Left ] }; + key { [ Cyrillic_de, Cyrillic_DE, Down, Down ] }; + key { [ Cyrillic_zhe, Cyrillic_ZHE, Right, Right ] }; + key { [ Cyrillic_e, Cyrillic_E, Menu, Menu ] }; - key { [ parenright, parenleft, Insert ] }; - key { [ BackSpace, BackSpace, Delete ] }; + key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, Next, Next ] }; + key { [ Cyrillic_be, Cyrillic_BE, Home, Home ] }; + key { [ Cyrillic_yu, Cyrillic_YU, End, End ] }; + + key { [ parenright, parenleft, Insert, Insert ] }; + key { [ BackSpace, BackSpace, Delete, Delete ] }; +}; + +partial modifier_keys +xkb_symbols "common" { + name[Group1]= "Common (layout mimicking the Ducky Mini)"; + + key { + type[Group1]="ONE_LEVEL", + symbols[Group1] = [ ISO_Level3_Shift ] + }; + key { [ Control_L ] }; + modifier_map Control { , }; };