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.

153 lines
7.9 KiB

  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. * Q W E R T Y U I O P Ð '
  24. *
  25. * A S D F G H J K L Æ ´ +
  26. *
  27. * < Z X C V B N M , . Þ
  28. *
  29. *
  30. *
  31. */
  32. // Row 1
  33. #define IS_RNGA KC_GRV // ° (dead)
  34. #define IS_1 KC_1 // 1
  35. #define IS_2 KC_2 // 2
  36. #define IS_3 KC_3 // 3
  37. #define IS_4 KC_4 // 4
  38. #define IS_5 KC_5 // 5
  39. #define IS_6 KC_6 // 6
  40. #define IS_7 KC_7 // 7
  41. #define IS_8 KC_8 // 8
  42. #define IS_9 KC_9 // 9
  43. #define IS_0 KC_0 // 0
  44. #define IS_ODIA KC_MINS // Ö
  45. #define IS_MINS KC_EQL // -
  46. // Row 2
  47. #define IS_Q KC_Q // Q
  48. #define IS_W KC_W // W
  49. #define IS_E KC_E // E
  50. #define IS_R KC_R // R
  51. #define IS_T KC_T // T
  52. #define IS_Y KC_Y // Y
  53. #define IS_U KC_U // U
  54. #define IS_I KC_I // I
  55. #define IS_O KC_O // O
  56. #define IS_P KC_P // P
  57. #define IS_ETH KC_LBRC // Ð
  58. #define IS_QUOT KC_RBRC // '
  59. // Row 3
  60. #define IS_A KC_A // A
  61. #define IS_S KC_S // S
  62. #define IS_D KC_D // D
  63. #define IS_F KC_F // F
  64. #define IS_G KC_G // G
  65. #define IS_H KC_H // H
  66. #define IS_J KC_J // J
  67. #define IS_K KC_K // K
  68. #define IS_L KC_L // L
  69. #define IS_AE KC_SCLN // Æ
  70. #define IS_ACUT KC_QUOT // ´ (dead)
  71. #define IS_PLUS KC_NUHS // +
  72. // Row 4
  73. #define IS_LABK KC_NUBS // <
  74. #define IS_Z KC_Z // Z
  75. #define IS_X KC_X // X
  76. #define IS_C KC_C // C
  77. #define IS_V KC_V // V
  78. #define IS_B KC_B // B
  79. #define IS_N KC_N // N
  80. #define IS_M KC_M // M
  81. #define IS_COMM KC_COMM // ,
  82. #define IS_DOT KC_DOT // .
  83. #define IS_THRN KC_SLSH // Þ
  84. /* Shifted symbols
  85. *
  86. * ¨ ! " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ │ _ │ │
  87. *
  88. * ?
  89. *
  90. * *
  91. *
  92. * > ; :
  93. *
  94. *
  95. *
  96. */
  97. // Row 1
  98. #define IS_DIAE S(IS_RNGA) // ¨ (dead)
  99. #define IS_EXLM S(IS_1) // !
  100. #define IS_DQUO S(IS_2) // "
  101. #define IS_HASH S(IS_3) // #
  102. #define IS_DLR S(IS_4) // $
  103. #define IS_PERC S(IS_5) // %
  104. #define IS_AMPR S(IS_6) // &
  105. #define IS_SLSH S(IS_7) // /
  106. #define IS_LPRN S(IS_8) // (
  107. #define IS_RPRN S(IS_9) // )
  108. #define IS_EQL S(IS_0) // =
  109. #define IS_UNDS S(IS_MINS) // _
  110. // Row 2
  111. #define IS_QUES S(IS_QUOT) // ?
  112. // Row 3
  113. #define IS_ASTR S(IS_PLUS) // *
  114. // Row 4
  115. #define IS_RABK S(IS_LABK) // >
  116. #define IS_SCLN S(IS_COMM) // ;
  117. #define IS_COLN S(IS_DOT) // :
  118. /* AltGr symbols
  119. *
  120. * ° { [ ] } \
  121. *
  122. * @ ~
  123. *
  124. * ^ `
  125. *
  126. * | µ
  127. *
  128. *
  129. *
  130. */
  131. // Row 1
  132. #define IS_DEG ALGR(IS_RNGA) // °
  133. #define IS_LCBR ALGR(IS_7) // {
  134. #define IS_LBRC ALGR(IS_8) // [
  135. #define IS_RBRC ALGR(IS_9) // ]
  136. #define IS_RCBR ALGR(IS_0) // }
  137. #define IS_BSLS ALGR(IS_ODIA) // (backslash)
  138. // Row 2
  139. #define IS_AT ALGR(IS_Q) // @
  140. #define IS_EURO ALGR(IS_E) // €
  141. #define IS_TILD ALGR(IS_QUOT) // ~
  142. // Row 3
  143. #define IS_CIRC ALGR(IS_ACUT) // ^ (dead)
  144. #define IS_GRV ALGR(IS_PLUS) // ` (dead)
  145. // Row 4
  146. #define IS_PIPE ALGR(IS_LABK) // |
  147. #define IS_MICR ALGR(IS_M) // µ