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.

224 lines
12 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 US_DGRV KC_GRV // ` (dead)
  34. #define US_1 KC_1 // 1
  35. #define US_2 KC_2 // 2
  36. #define US_3 KC_3 // 3
  37. #define US_4 KC_4 // 4
  38. #define US_5 KC_5 // 5
  39. #define US_6 KC_6 // 6
  40. #define US_7 KC_7 // 7
  41. #define US_8 KC_8 // 8
  42. #define US_9 KC_9 // 9
  43. #define US_0 KC_0 // 0
  44. #define US_MINS KC_MINS // -
  45. #define US_EQL KC_EQL // =
  46. // Row 2
  47. #define US_Q KC_Q // Q
  48. #define US_W KC_W // W
  49. #define US_E KC_E // E
  50. #define US_R KC_R // R
  51. #define US_T KC_T // T
  52. #define US_Y KC_Y // Y
  53. #define US_U KC_U // U
  54. #define US_I KC_I // I
  55. #define US_O KC_O // O
  56. #define US_P KC_P // P
  57. #define US_LBRC KC_LBRC // [
  58. #define US_RBRC KC_RBRC // ]
  59. #define US_BSLS KC_BSLS // (backslash)
  60. // Row 3
  61. #define US_A KC_A // A
  62. #define US_S KC_S // S
  63. #define US_D KC_D // D
  64. #define US_F KC_F // F
  65. #define US_G KC_G // G
  66. #define US_H KC_H // H
  67. #define US_J KC_J // J
  68. #define US_K KC_K // K
  69. #define US_L KC_L // L
  70. #define US_SCLN KC_SCLN // ;
  71. #define US_ACUT KC_QUOT // ´ (dead)
  72. // Row 4
  73. #define US_Z KC_Z // Z
  74. #define US_X KC_X // X
  75. #define US_C KC_C // C
  76. #define US_V KC_V // V
  77. #define US_B KC_B // B
  78. #define US_N KC_N // N
  79. #define US_M KC_M // M
  80. #define US_COMM KC_COMM // ,
  81. #define US_DOT KC_DOT // .
  82. #define US_SLSH KC_SLSH // /
  83. /* Shifted symbols
  84. *
  85. * ~ ! @ # $ % ^ & * ( ) _ +
  86. *
  87. * { } |
  88. *
  89. * : ¨
  90. *
  91. * < > ?
  92. *
  93. *
  94. *
  95. */
  96. // Row 1
  97. #define US_DTIL S(US_DGRV) // ~ (dead)
  98. #define US_EXLM S(US_1) // !
  99. #define US_AT S(US_2) // @
  100. #define US_HASH S(US_3) // #
  101. #define US_DLR S(US_4) // $
  102. #define US_PERC S(US_5) // %
  103. #define US_DCIR S(US_6) // ^ (dead)
  104. #define US_AMPR S(US_7) // &
  105. #define US_ASTR S(US_8) // *
  106. #define US_LPRN S(US_9) // (
  107. #define US_RPRN S(US_0) // )
  108. #define US_UNDS S(US_MINS) // _
  109. #define US_PLUS S(US_EQL) // +
  110. // Row 2
  111. #define US_LCBR S(US_LBRC) // {
  112. #define US_RCBR S(US_RBRC) // }
  113. #define US_PIPE S(US_BSLS) // |
  114. // Row 3
  115. #define US_COLN S(US_SCLN) // :
  116. #define US_DIAE S(US_ACUT) // ¨ (dead)
  117. // Row 4
  118. #define US_LABK S(US_COMM) // <
  119. #define US_RABK S(US_DOT) // >
  120. #define US_QUES S(US_SLSH) // ?
  121. /* AltGr symbols
  122. *
  123. * ` ¡ ² ³ ¤ ¼ ½ ¾ ¥ ×
  124. *
  125. * Ä Å É ® Þ Ü Ú Í Ó Ö « » ¬
  126. *
  127. * Á ß Ð Œ Ø '
  128. *
  129. * Æ © Ñ µ Ç ˙ ¿
  130. *
  131. *
  132. *
  133. */
  134. // Row 1
  135. #define US_GRV ALGR(US_DGRV) // `
  136. #define US_IEXL ALGR(US_1) // ¡
  137. #define US_SUP2 ALGR(US_2) // ²
  138. #define US_SUP3 ALGR(US_3) // ³
  139. #define US_CURR ALGR(US_4) // ¤
  140. #define US_EURO ALGR(US_5) // €
  141. #define US_QRTR ALGR(US_6) // ¼
  142. #define US_HALF ALGR(US_7) // ½
  143. #define US_TQTR ALGR(US_8) // ¾
  144. #define US_LSQU ALGR(US_9) // ‘
  145. #define US_RSQU ALGR(US_0) // ’
  146. #define US_YEN ALGR(US_MINS) // ¥
  147. #define US_MUL ALGR(US_EQL) // ×
  148. // Row 2
  149. #define US_ADIA ALGR(US_Q) // Ä
  150. #define US_ARNG ALGR(US_W) // Å
  151. #define US_EACU ALGR(US_E) // É
  152. #define US_REGD ALGR(US_R) // ®
  153. #define US_THRN ALGR(US_T) // Þ
  154. #define US_UDIA ALGR(US_Y) // Ü
  155. #define US_UACU ALGR(US_U) // Ú
  156. #define US_IACU ALGR(US_I) // Í
  157. #define US_OACU ALGR(US_O) // Ó
  158. #define US_ODIA ALGR(US_P) // Ö
  159. #define US_LDAQ ALGR(US_LBRC) // «
  160. #define US_RDAQ ALGR(US_RBRC) // »
  161. #define US_NOT ALGR(US_BSLS) // ¬
  162. // Row 3
  163. #define US_AACU ALGR(US_A) // Á
  164. #define US_SS ALGR(US_S) // ß
  165. #define US_ETH ALGR(US_D) // Ð
  166. #define US_OE ALGR(US_K) // Œ
  167. #define US_OSTR ALGR(US_L) // Ø
  168. #define US_PILC ALGR(US_SCLN) // ¶
  169. #define US_QUOT ALGR(US_ACUT) // '
  170. // Row 4
  171. #define US_AE ALGR(US_Z) // Æ
  172. #define US_COPY ALGR(US_C) // ©
  173. #define US_NTIL ALGR(US_N) // Ñ
  174. #define US_MICR ALGR(US_M) // µ
  175. #define US_CCED ALGR(US_COMM) // Ç
  176. #define US_DOTA ALGR(US_DOT) // ˙ (dead)
  177. #define US_IQUE ALGR(US_SLSH) // ¿
  178. /* Shift+AltGr symbols
  179. *
  180. * ~ ¹ ˝ ¯ £ ¸ ^ ̛ ˛ ˘ ° ̣ ÷
  181. *
  182. * ¦
  183. *
  184. * § ° " │ │
  185. *
  186. * ¢ ˇ ̉
  187. *
  188. *
  189. *
  190. */
  191. // Row 1
  192. #define US_TILD S(ALGR(US_DGRV)) // ~
  193. #define US_SUP1 S(ALGR(US_1)) // ¹
  194. #define US_DACU S(ALGR(US_2)) // ˝ (dead)
  195. #define US_MACR S(ALGR(US_3)) // ¯ (dead)
  196. #define US_PND S(ALGR(US_4)) // £
  197. #define US_CEDL S(ALGR(US_5)) // ¸ (dead)
  198. #define US_CIRC S(ALGR(US_6)) // ^
  199. #define US_HORN S(ALGR(US_7)) // ̛ (dead)
  200. #define US_OGON S(ALGR(US_8)) // ˛ (dead)
  201. #define US_BREV S(ALGR(US_9)) // ˘ (dead)
  202. #define US_RNGA S(ALGR(US_0)) // ° (dead)
  203. #define US_DOTB S(ALGR(US_MINS)) // ̣ (dead)
  204. #define US_DIV S(ALGR(US_EQL)) // ÷
  205. // Row 2
  206. #define US_LDQU S(ALGR(US_LBRC)) // “
  207. #define US_RDQU S(ALGR(US_RBRC)) // ”
  208. #define US_BRKP S(ALGR(US_BSLS)) // ¦
  209. // Row 3
  210. #define US_SECT S(ALGR(US_S)) // §
  211. #define US_DEG S(ALGR(US_SCLN)) // °
  212. #define US_DQUO S(ALGR(US_ACUT)) // "
  213. // Row 4
  214. #define US_CENT S(ALGR(US_C)) // ¢
  215. #define US_CARN S(ALGR(US_DOT)) // ˇ (dead)
  216. #define US_HOKA S(ALGR(US_SLSH)) // ̉ (dead)