keymap_russian.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* Copyright 2020
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "keymap.h"
  18. // clang-format off
  19. /*
  20. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  21. * │ Ё │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
  22. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  23. * │ │ Й │ Ц │ У │ К │ Е │ Н │ Г │ Ш │ Щ │ З │ Х │ Ъ │ \ │
  24. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
  25. * │ │ Ф │ Ы │ В │ А │ П │ Р │ О │ Л │ Д │ Ж │ Э │ │
  26. * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
  27. * │ │ Я │ Ч │ С │ М │ И │ Т │ Ь │ Б │ Ю │ . │ │
  28. * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  29. * │ │ │ │ │ │ │ │ │
  30. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  31. */
  32. // Row 1
  33. #define RU_YO KC_GRV // Ё
  34. #define RU_1 KC_1 // 1
  35. #define RU_2 KC_2 // 2
  36. #define RU_3 KC_3 // 3
  37. #define RU_4 KC_4 // 4
  38. #define RU_5 KC_5 // 5
  39. #define RU_6 KC_6 // 6
  40. #define RU_7 KC_7 // 7
  41. #define RU_8 KC_8 // 8
  42. #define RU_9 KC_9 // 9
  43. #define RU_0 KC_0 // 0
  44. #define RU_MINS KC_MINS // -
  45. #define RU_EQL KC_EQL // =
  46. // Row 2
  47. #define RU_SHTI KC_Q // Й
  48. #define RU_TSE KC_W // Ц
  49. #define RU_U KC_E // У
  50. #define RU_KA KC_R // К
  51. #define RU_IE KC_T // Е
  52. #define RU_EN KC_Y // Н
  53. #define RU_GHE KC_U // Г
  54. #define RU_SHA KC_I // Ш
  55. #define RU_SHCH KC_O // Щ
  56. #define RU_ZE KC_P // З
  57. #define RU_HA KC_LBRC // Х
  58. #define RU_HARD KC_RBRC // Ъ
  59. #define RU_BSLS KC_BSLS // (backslash)
  60. // Row 3
  61. #define RU_EF KC_A // Ф
  62. #define RU_YERU KC_S // Ы
  63. #define RU_VE KC_D // В
  64. #define RU_A KC_F // А
  65. #define RU_PE KC_G // П
  66. #define RU_ER KC_H // Р
  67. #define RU_O KC_J // О
  68. #define RU_EL KC_K // Л
  69. #define RU_DE KC_L // Д
  70. #define RU_ZHE KC_SCLN // Ж
  71. #define RU_E KC_QUOT // Э
  72. // Row 4
  73. #define RU_YA KC_Z // Я
  74. #define RU_CHE KC_X // Ч
  75. #define RU_ES KC_C // С
  76. #define RU_EM KC_V // М
  77. #define RU_I KC_B // И
  78. #define RU_TE KC_N // Т
  79. #define RU_SOFT KC_M // Ь
  80. #define RU_BE KC_COMM // Б
  81. #define RU_YU KC_DOT // Ю
  82. #define RU_DOT KC_SLSH // .
  83. /* Shifted symbols
  84. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  85. * │ │ ! │ " │ № │ ; │ % │ : │ ? │ * │ ( │ ) │ _ │ + │ │
  86. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  87. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ / │
  88. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
  89. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  90. * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
  91. * │ │ │ │ │ │ │ │ │ │ │ , │ │
  92. * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  93. * │ │ │ │ │ │ │ │ │
  94. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  95. */
  96. // Row 1
  97. #define RU_EXLM S(RU_1) // !
  98. #define RU_DQUO S(RU_2) // "
  99. #define RU_NUM S(RU_3) // №
  100. #define RU_SCLN S(RU_4) // ;
  101. #define RU_PERC S(RU_5) // %
  102. #define RU_COLN S(RU_6) // :
  103. #define RU_QUES S(RU_7) // ?
  104. #define RU_ASTR S(RU_8) // *
  105. #define RU_LPRN S(RU_9) // (
  106. #define RU_RPRN S(RU_0) // )
  107. #define RU_UNDS S(RU_MINS) // _
  108. #define RU_PLUS S(RU_EQL) // +
  109. // Row 2
  110. #define RU_SLSH S(RU_BSLS) // /
  111. // Row 4
  112. #define RU_COMM S(RU_DOT) // ,
  113. /* AltGr symbols
  114. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  115. * │ │ │ │ │ │ │ │ │ ₽ │ │ │ │ │ │
  116. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  117. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  118. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
  119. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  120. * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
  121. * │ │ │ │ │ │ │ │ │ │ │ │ │
  122. * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  123. * │ │ │ │ │ │ │ │ │
  124. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  125. */
  126. // Row 1
  127. #define RU_RUBL ALGR(RU_8) // ₽