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.

179 lines
8.5 KiB

  1. /* Copyright 2017 Andreas Lindhé
  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 SE_SECT KC_GRV // §
  34. #define SE_1 KC_1 // 1
  35. #define SE_2 KC_2 // 2
  36. #define SE_3 KC_3 // 3
  37. #define SE_4 KC_4 // 4
  38. #define SE_5 KC_5 // 5
  39. #define SE_6 KC_6 // 6
  40. #define SE_7 KC_7 // 7
  41. #define SE_8 KC_8 // 8
  42. #define SE_9 KC_9 // 9
  43. #define SE_0 KC_0 // 0
  44. #define SE_PLUS KC_MINS // +
  45. #define SE_ACUT KC_EQL // ´ (dead)
  46. // Row 2
  47. #define SE_Q KC_Q // Q
  48. #define SE_W KC_W // W
  49. #define SE_E KC_E // E
  50. #define SE_R KC_R // R
  51. #define SE_T KC_T // T
  52. #define SE_Y KC_Y // Y
  53. #define SE_U KC_U // U
  54. #define SE_I KC_I // I
  55. #define SE_O KC_O // O
  56. #define SE_P KC_P // P
  57. #define SE_ARNG KC_LBRC // Å
  58. #define SE_DIAE KC_RBRC // ¨ (dead)
  59. // Row 3
  60. #define SE_A KC_A // A
  61. #define SE_S KC_S // S
  62. #define SE_D KC_D // D
  63. #define SE_F KC_F // F
  64. #define SE_G KC_G // G
  65. #define SE_H KC_H // H
  66. #define SE_J KC_J // J
  67. #define SE_K KC_K // K
  68. #define SE_L KC_L // L
  69. #define SE_ODIA KC_SCLN // Ö
  70. #define SE_ADIA KC_QUOT // Ä
  71. #define SE_QUOT KC_NUHS // '
  72. // Row 4
  73. #define SE_LABK KC_NUBS // <
  74. #define SE_Z KC_Z // Z
  75. #define SE_X KC_X // X
  76. #define SE_C KC_C // C
  77. #define SE_V KC_V // V
  78. #define SE_B KC_B // B
  79. #define SE_N KC_N // N
  80. #define SE_M KC_M // M
  81. #define SE_COMM KC_COMM // ,
  82. #define SE_DOT KC_DOT // .
  83. #define SE_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. *
  86. * ½ ! " │ # │ ¤ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ │
  87. *
  88. * ^
  89. *
  90. * *
  91. *
  92. * > ; : _
  93. *
  94. *
  95. *
  96. */
  97. // Row 1
  98. #define SE_HALF S(SE_SECT) // ½
  99. #define SE_EXLM S(SE_1) // !
  100. #define SE_DQUO S(SE_2) // "
  101. #define SE_HASH S(SE_3) // #
  102. #define SE_CURR S(SE_4) // ¤
  103. #define SE_PERC S(SE_5) // %
  104. #define SE_AMPR S(SE_6) // &
  105. #define SE_SLSH S(SE_7) // /
  106. #define SE_LPRN S(SE_8) // (
  107. #define SE_RPRN S(SE_9) // )
  108. #define SE_EQL S(SE_0) // =
  109. #define SE_QUES S(SE_PLUS) // ?
  110. #define SE_GRV S(SE_ACUT) // ` (dead)
  111. // Row 2
  112. #define SE_CIRC S(SE_DIAE) // ^ (dead)
  113. // Row 3
  114. #define SE_ASTR S(SE_QUOT) // *
  115. // Row 4
  116. #define SE_RABK S(SE_LABK) // >
  117. #define SE_SCLN S(SE_COMM) // ;
  118. #define SE_COLN S(SE_DOT) // :
  119. #define SE_UNDS S(SE_MINS) // _
  120. /* AltGr symbols
  121. *
  122. * @ £ $ { [ ] } \
  123. *
  124. * ~
  125. *
  126. *
  127. *
  128. * | µ
  129. *
  130. *
  131. *
  132. */
  133. // Row 1
  134. #define SE_AT ALGR(SE_2) // @
  135. #define SE_PND ALGR(SE_3) // £
  136. #define SE_DLR ALGR(SE_4) // $
  137. #define SE_EURO ALGR(SE_5) // €
  138. #define SE_LCBR ALGR(SE_7) // {
  139. #define SE_LBRC ALGR(SE_8) // [
  140. #define SE_RBRC ALGR(SE_9) // ]
  141. #define SE_RCBR ALGR(SE_0) // }
  142. #define SE_BSLS ALGR(SE_PLUS) // (backslash)
  143. // Row 2
  144. #define SE_TILD ALGR(SE_DIAE) // ~ (dead)
  145. // Row 4
  146. #define SE_PIPE ALGR(SE_LABK) // |
  147. #define SE_MICR ALGR(SE_M) // µ
  148. // DEPRECATED
  149. #include "keymap_nordic.h"
  150. #define SE_OSLH SE_ODIA
  151. #define SE_APOS SE_QUOT
  152. #define SE_LESS SE_LABK
  153. #define SE_QUO2 SE_DQUO
  154. #define SE_BULT SE_CURR
  155. #define SE_GRTR SE_RABK
  156. #define SE_AA SE_ARNG
  157. #define SE_AE SE_ADIA
  158. #define SE_AM SE_ARNG
  159. #define SE_MU SE_MICR
  160. // Swedish macOS symbols (not vetted)
  161. #define SE_ACUT_MAC SE_ACUT
  162. #define SE_APOS_MAC SE_LABK
  163. #define SE_AT_MAC SE_ADIA
  164. #define SE_BSLS_MAC S(SE_LCBR)
  165. #define SE_DLR_MAC SE_CURR
  166. #define SE_GRV_MAC SE_BSLS
  167. #define SE_GRTR_MAC SE_HALF
  168. #define SE_LCBR_MAC S(SE_LBRC)
  169. #define SE_LESS_MAC SE_SECT
  170. #define SE_PIPE_MAC SE_LCBR
  171. #define SE_RCBR_MAC S(SE_RBRC)