keymap_czech.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. * │ ; │ + │ ě │ š │ č │ ř │ ž │ ý │ á │ í │ é │ = │ ´ │ │
  22. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  23. * │ │ Q │ W │ E │ R │ T │ Z │ U │ I │ O │ P │ ú │ ) │ │
  24. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  25. * │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ů │ § │ ¨ │ │
  26. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  27. * │ │ \ │ Y │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │
  28. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  29. * │ │ │ │ │ │ │ │ │
  30. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  31. */
  32. // Row 1
  33. #define CZ_SCLN KC_GRV // ;
  34. #define CZ_PLUS KC_1 // +
  35. #define CZ_ECAR KC_2 // ě
  36. #define CZ_SCAR KC_3 // š
  37. #define CZ_CCAR KC_4 // č
  38. #define CZ_RCAR KC_5 // ř
  39. #define CZ_ZCAR KC_6 // ž
  40. #define CZ_YACU KC_7 // ý
  41. #define CZ_AACU KC_8 // á
  42. #define CZ_IACU KC_9 // í
  43. #define CZ_EACU KC_0 // é
  44. #define CZ_EQL KC_MINS // =
  45. #define CZ_ACUT KC_EQL // ´ (dead)
  46. // Row 2
  47. #define CZ_Q KC_Q // Q
  48. #define CZ_W KC_W // W
  49. #define CZ_E KC_E // E
  50. #define CZ_R KC_R // R
  51. #define CZ_T KC_T // T
  52. #define CZ_Z KC_Y // Z
  53. #define CZ_U KC_U // U
  54. #define CZ_I KC_I // I
  55. #define CZ_O KC_O // O
  56. #define CZ_P KC_P // P
  57. #define CZ_UACU KC_LBRC // ú
  58. #define CZ_RPRN KC_RBRC // )
  59. // Row 3
  60. #define CZ_A KC_A // A
  61. #define CZ_S KC_S // S
  62. #define CZ_D KC_D // D
  63. #define CZ_F KC_F // F
  64. #define CZ_G KC_G // G
  65. #define CZ_H KC_H // H
  66. #define CZ_J KC_J // J
  67. #define CZ_K KC_K // K
  68. #define CZ_L KC_L // L
  69. #define CZ_URNG KC_SCLN // ů
  70. #define CZ_SECT KC_QUOT // §
  71. #define CZ_DIAE KC_NUHS // ¨ (dead)
  72. // Row 4
  73. #define CZ_BSLS KC_NUBS // (backslash)
  74. #define CZ_Y KC_Z // Y
  75. #define CZ_X KC_X // X
  76. #define CZ_C KC_C // C
  77. #define CZ_V KC_V // V
  78. #define CZ_B KC_B // B
  79. #define CZ_N KC_N // N
  80. #define CZ_M KC_M // M
  81. #define CZ_COMM KC_COMM // ,
  82. #define CZ_DOT KC_DOT // .
  83. #define CZ_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ ° │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ % │ ˇ │ │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │ │ │ │ │ │ │ │ │ │ │ │ / │ ( │ │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  90. * │ │ │ │ │ │ │ │ │ │ │ " │ ! │ ' │ │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │ │ | │ │ │ │ │ │ │ │ ? │ : │ _ │ │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │ │ │ │ │ │ │ │ │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define CZ_RNGA S(CZ_SCLN) // ° (dead)
  99. #define CZ_1 S(CZ_PLUS) // 1
  100. #define CZ_2 S(CZ_ECAR) // 2
  101. #define CZ_3 S(CZ_SCAR) // 3
  102. #define CZ_4 S(CZ_CCAR) // 4
  103. #define CZ_5 S(CZ_RCAR) // 5
  104. #define CZ_6 S(CZ_ZCAR) // 6
  105. #define CZ_7 S(CZ_YACU) // 7
  106. #define CZ_8 S(CZ_AACU) // 8
  107. #define CZ_9 S(CZ_IACU) // 9
  108. #define CZ_0 S(CZ_EACU) // 0
  109. #define CZ_PERC S(CZ_EQL) // %
  110. #define CZ_CARN S(CZ_ACUT) // ˇ (dead)
  111. // Row 2
  112. #define CZ_SLSH S(CZ_UACU) // /
  113. #define CZ_LPRN S(CZ_RPRN) // (
  114. // Row 3
  115. #define CZ_DQUO S(CZ_URNG) // "
  116. #define CZ_EXLM S(CZ_SECT) // !
  117. #define CZ_QUOT S(CZ_DIAE) // '
  118. // Row 4
  119. #define CZ_PIPE S(CZ_BSLS) // |
  120. #define CZ_QUES S(CZ_COMM) // ?
  121. #define CZ_COLN S(CZ_DOT) // :
  122. #define CZ_UNDS S(CZ_MINS) // _
  123. /* AltGr symbols
  124. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  125. * │ │ ~ │ │ ^ │ ˘ │ │ ˛ │ ` │ ˙ │ │ ˝ │ │ ¸ │ │
  126. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  127. * │ │ │ │ € │ │ │ │ │ │ │ │ ÷ │ × │ │
  128. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  129. * │ │ │ đ │ Đ │ [ │ ] │ │ │ ł │ Ł │ $ │ ß │ ¤ │ │
  130. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  131. * │ │ │ │ # │ & │ @ │ { │ } │ │ < │ > │ * │ │
  132. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  133. * │ │ │ │ │ │ │ │ │
  134. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  135. */
  136. // Row 1
  137. #define CZ_TILD ALGR(CZ_PLUS) // ~
  138. #define CZ_CIRC ALGR(CZ_SCAR) // ^ (dead)
  139. #define CZ_BREV ALGR(CZ_CCAR) // ˘ (dead)
  140. #define CZ_OGON ALGR(CZ_ZCAR) // ˛ (dead)
  141. #define CZ_GRV ALGR(CZ_YACU) // ` (dead)
  142. #define CZ_DOTA ALGR(CZ_AACU) // ˙ (dead)
  143. #define CZ_DACU ALGR(CZ_EACU) // ˝ (dead)
  144. #define CZ_CEDL ALGR(CZ_ACUT) // ¸ (dead)
  145. // Row 2
  146. #define CZ_EURO ALGR(CZ_E) // €
  147. #define CZ_DIV ALGR(CZ_UACU) // ÷
  148. #define CZ_MUL ALGR(CZ_RPRN) // ×
  149. // Row 3
  150. #define CZ_LDST ALGR(CZ_S) // đ
  151. #define CZ_CDST ALGR(CZ_D) // Đ
  152. #define CZ_LBRC ALGR(CZ_F) // [
  153. #define CZ_RBRC ALGR(CZ_G) // ]
  154. #define CZ_LLST ALGR(CZ_K) // ł
  155. #define CZ_CLST ALGR(CZ_L) // Ł
  156. #define CZ_DLR ALGR(CZ_URNG) // $
  157. #define CZ_SS ALGR(CZ_SECT) // ß
  158. #define CZ_CURR ALGR(CZ_DIAE) // ¤
  159. // Row 4
  160. #define CZ_HASH ALGR(CZ_X) // #
  161. #define CZ_AMPR ALGR(CZ_C) // &
  162. #define CZ_AT ALGR(CZ_V) // @
  163. #define CZ_LCBR ALGR(CZ_B) // {
  164. #define CZ_RCBR ALGR(CZ_N) // }
  165. #define CZ_LABK ALGR(CZ_COMM) // <
  166. #define CZ_RABK ALGR(CZ_DOT) // >
  167. #define CZ_ASTR ALGR(CZ_MINS) // *