keymap_serbian.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 RS_GRV KC_GRV // `
  34. #define RS_1 KC_1 // 1
  35. #define RS_2 KC_2 // 2
  36. #define RS_3 KC_3 // 3
  37. #define RS_4 KC_4 // 4
  38. #define RS_5 KC_5 // 5
  39. #define RS_6 KC_6 // 6
  40. #define RS_7 KC_7 // 7
  41. #define RS_8 KC_8 // 8
  42. #define RS_9 KC_9 // 9
  43. #define RS_0 KC_0 // 0
  44. #define RS_QUOT KC_MINS // ' (dead)
  45. #define RS_PLUS KC_EQL // +
  46. // Row 2
  47. #define RS_LJE KC_Q // Љ
  48. #define RS_NJE KC_W // Њ
  49. #define RS_IE KC_E // Е
  50. #define RS_ER KC_R // Р
  51. #define RS_TE KC_T // Т
  52. #define RS_ZE KC_Y // З
  53. #define RS_U KC_U // У
  54. #define RS_I KC_I // И
  55. #define RS_O KC_O // О
  56. #define RS_PE KC_P // П
  57. #define RS_SHA KC_LBRC // Ш
  58. #define RS_DJE KC_RBRC // Ђ
  59. // Row 3
  60. #define RS_A KC_A // А
  61. #define RS_ES KC_S // С
  62. #define RS_DE KC_D // Д
  63. #define RS_EF KC_F // Ф
  64. #define RS_GHE KC_G // Г
  65. #define RS_HA KC_H // Х
  66. #define RS_JE KC_J // Ј
  67. #define RS_KA KC_K // К
  68. #define RS_EL KC_L // Л
  69. #define RS_CHE KC_SCLN // Ч
  70. #define RS_TSHE KC_QUOT // Ћ
  71. #define RS_ZHE KC_NUHS // Ж
  72. // Row 4
  73. #define RS_LABK KC_NUBS // <
  74. #define RS_DZE KC_Z // Ѕ
  75. #define RS_DZHE KC_X // Џ
  76. #define RS_TSE KC_C // Ц
  77. #define RS_VE KC_V // В
  78. #define RS_BE KC_B // Б
  79. #define RS_EN KC_N // Н
  80. #define RS_EM KC_M // М
  81. #define RS_COMM KC_COMM // ,
  82. #define RS_DOT KC_DOT // .
  83. #define RS_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ ~ │ ! │ " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ * │ │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  90. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │ │ │ │ │ │ │ │ │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define RS_TILD S(RS_GRV) // ~
  99. #define RS_EXLM S(RS_1) // !
  100. #define RS_DQUO S(RS_2) // "
  101. #define RS_HASH S(RS_3) // #
  102. #define RS_DLR S(RS_4) // $
  103. #define RS_PERC S(RS_5) // %
  104. #define RS_AMPR S(RS_6) // &
  105. #define RS_SLSH S(RS_7) // /
  106. #define RS_LPRN S(RS_8) // (
  107. #define RS_RPRN S(RS_9) // )
  108. #define RS_EQL S(RS_0) // =
  109. #define RS_QUES S(RS_QUOT) // ?
  110. #define RS_ASTR S(RS_PLUS) // *
  111. // Row 4
  112. #define RS_RABK S(RS_LABK) // >
  113. #define RS_SCLN S(RS_COMM) // ;
  114. #define RS_COLN S(RS_DOT) // :
  115. #define RS_UNDS S(RS_MINS) // _
  116. /* AltGr symbols
  117. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  118. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  119. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  120. * │ │ │ │ € │ │ │ │ │ │ │ │ │ │ │
  121. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  122. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  123. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  124. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  125. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  126. * │ │ │ │ │ │ │ │ │
  127. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  128. */
  129. // Row 2
  130. #define RS_EURO ALGR(RS_IE) // €