my localhost configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ducky_mini 5.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // This is a wip layout that mimicks ducky shine mini keyboard layout.
  2. // Uses us standard and ru typewriter keyboard layouts.
  3. // WIP, should be used with lv3 and grp switches
  4. // Has to be copied to /usr/share/X11/xkb/symbols/ducky_mini
  5. default partial alphanumeric_keys
  6. xkb_symbols "us" {
  7. name[Group1] = "English (US, with a layout mimicking the Ducky Shine Mini fn functionality)";
  8. include "us(basic)"
  9. include "ducky_mini(common)"
  10. // chromium doesn't like it when esc is bound to a normal key :(
  11. // key <TLDE> { [ Escape, asciitilde, grave, Escape ] };
  12. key <AE01> { [ 1, exclam, F1, F1 ] };
  13. key <AE02> { [ 2, at, F2, F2 ] };
  14. key <AE03> { [ 3, numbersign, F3, F3 ] };
  15. key <AE04> { [ 4, dollar, F4, F4 ] };
  16. key <AE05> { [ 5, percent, F5, F5 ] };
  17. key <AE06> { [ 6, asciicircum, F6, F6 ] };
  18. key <AE07> { [ 7, ampersand, F7, F7 ] };
  19. key <AE08> { [ 8, asterisk, F8, F8 ] };
  20. key <AE09> { [ 9, parenleft, F9, F9 ] };
  21. key <AE10> { [ 0, parenright, F10, F10 ] };
  22. key <AE11> { [ minus, underscore, F11, F11 ] };
  23. key <AE12> { [ equal, plus, F12, F12 ] };
  24. key <AD09> { [ o, O, Up, Up ] };
  25. key <AD10> { [ p, P, Print, Sys_Req ] };
  26. key <AD11> { [ bracketleft, braceleft, Scroll_Lock, Scroll_Lock ] };
  27. key <AD12> { [ bracketright, braceright, Pause, Break ] };
  28. key <AC07> { [ j, J, Prior, Prior ] };
  29. key <AC08> { [ k, K, Left, Left ] };
  30. key <AC09> { [ l, L, Down, Down ] };
  31. key <AC10> { [ semicolon, colon, Right, Right ] };
  32. key <AC11> { [ apostrophe, quotedbl, Menu, Menu ] };
  33. key <AB07> { [ m, M, Next, Next ] };
  34. key <AB08> { [ comma, less, Home, Home ] };
  35. key <AB09> { [ period, greater, End, End ] };
  36. key <BKSL> { [ backslash, bar, Insert, Insert ] };
  37. key <BKSP> { [ BackSpace, BackSpace, Delete, Delete ] };
  38. };
  39. partial alphanumeric_keys
  40. xkb_symbols "ru" {
  41. name[Group1] = "Russian (RU typewriter, with a layout mimicking the Ducky Shine Mini fn functionality)";
  42. include "ru(typewriter)"
  43. include "ducky_mini(common)"
  44. // chromium doesn't like it when esc is bound to a normal key :(
  45. // key <TLDE> { [ Escape, plus, bar, Escape ] };
  46. key <AE01> { [ numerosign, 1, F1, F1 ] };
  47. key <AE02> { [ minus, 2, F2, F2 ] };
  48. key <AE03> { [ slash, 3, F3, F3 ] };
  49. key <AE04> { [ quotedbl, 4, F4, F4 ] };
  50. key <AE05> { [ colon, 5, F5, F5 ] };
  51. key <AE06> { [ comma, 6, F6, F6 ] };
  52. key <AE07> { [ period, 7, F7, F7 ] };
  53. key <AE08> { [ underscore, 8, F8, F8 ] };
  54. key <AE09> { [ question, 9, F9, F9 ] };
  55. key <AE10> { [ percent, 0, F10, F10 ] };
  56. key <AE11> { [ exclam, equal, F11, F11 ] };
  57. key <AE12> { [ semicolon, backslash, F12, F12 ] };
  58. key <AD09> { [ Cyrillic_shcha, Cyrillic_SHCHA, Up ] };
  59. key <AD10> { [ Cyrillic_ze, Cyrillic_ZE, Print, Sys_Req ] };
  60. key <AD11> { [ Cyrillic_ha, Cyrillic_HA, Scroll_Lock, Scroll_Lock ] };
  61. key <AD12> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, Pause, Break ] };
  62. key <AC07> { [ Cyrillic_o, Cyrillic_O, Prior, Prior ] };
  63. key <AC08> { [ Cyrillic_el, Cyrillic_EL, Left, Left ] };
  64. key <AC09> { [ Cyrillic_de, Cyrillic_DE, Down, Down ] };
  65. key <AC10> { [ Cyrillic_zhe, Cyrillic_ZHE, Right, Right ] };
  66. key <AC11> { [ Cyrillic_e, Cyrillic_E, Menu, Menu ] };
  67. key <AB07> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, Next, Next ] };
  68. key <AB08> { [ Cyrillic_be, Cyrillic_BE, Home, Home ] };
  69. key <AB09> { [ Cyrillic_yu, Cyrillic_YU, End, End ] };
  70. key <BKSL> { [ parenright, parenleft, Insert, Insert ] };
  71. key <BKSP> { [ BackSpace, BackSpace, Delete, Delete ] };
  72. };
  73. partial modifier_keys
  74. xkb_symbols "common" {
  75. name[Group1] = "Common (layout mimicking the Ducky Shine Mini fn functionality)";
  76. replace key <CAPS> { [ Control_L ] };
  77. replace key <LCTL> { [ ISO_Level3_Shift ] };
  78. };