keymap_danish.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /* Copyright 2019
  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 DK_HALF KC_GRV // ½
  34. #define DK_1 KC_1 // 1
  35. #define DK_2 KC_2 // 2
  36. #define DK_3 KC_3 // 3
  37. #define DK_4 KC_4 // 4
  38. #define DK_5 KC_5 // 5
  39. #define DK_6 KC_6 // 6
  40. #define DK_7 KC_7 // 7
  41. #define DK_8 KC_8 // 8
  42. #define DK_9 KC_9 // 9
  43. #define DK_0 KC_0 // 0
  44. #define DK_PLUS KC_MINS // +
  45. #define DK_ACUT KC_EQL // ´ (dead)
  46. // Row 2
  47. #define DK_Q KC_Q // Q
  48. #define DK_W KC_W // W
  49. #define DK_E KC_E // E
  50. #define DK_R KC_R // R
  51. #define DK_T KC_T // T
  52. #define DK_Y KC_Y // Y
  53. #define DK_U KC_U // U
  54. #define DK_I KC_I // I
  55. #define DK_O KC_O // O
  56. #define DK_P KC_P // P
  57. #define DK_ARNG KC_LBRC // Å
  58. #define DK_DIAE KC_RBRC // ¨ (dead)
  59. // Row 3
  60. #define DK_A KC_A // A
  61. #define DK_S KC_S // S
  62. #define DK_D KC_D // D
  63. #define DK_F KC_F // F
  64. #define DK_G KC_G // G
  65. #define DK_H KC_H // H
  66. #define DK_J KC_J // J
  67. #define DK_K KC_K // K
  68. #define DK_L KC_L // L
  69. #define DK_AE KC_SCLN // Æ
  70. #define DK_OSTR KC_QUOT // Ø
  71. #define DK_QUOT KC_NUHS // '
  72. // Row 4
  73. #define DK_LABK KC_NUBS // <
  74. #define DK_Z KC_Z // Z
  75. #define DK_X KC_X // X
  76. #define DK_C KC_C // C
  77. #define DK_V KC_V // V
  78. #define DK_B KC_B // B
  79. #define DK_N KC_N // N
  80. #define DK_M KC_M // M
  81. #define DK_COMM KC_COMM // ,
  82. #define DK_DOT KC_DOT // .
  83. #define DK_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ § │ ! │ " │ # │ ¤ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │       │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │     │   │   │   │   │   │   │   │   │   │   │   │ ^ │     │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐    │
  90. * │      │   │   │   │   │   │   │   │   │   │   │   │ * │    │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │    │ > │   │   │   │   │   │   │   │ ; │ : │ _ │          │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │    │    │    │                        │    │    │    │    │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define DK_SECT S(DK_HALF) // §
  99. #define DK_EXLM S(DK_1) // !
  100. #define DK_DQUO S(DK_2) // "
  101. #define DK_HASH S(DK_3) // #
  102. #define DK_CURR S(DK_4) // ¤
  103. #define DK_PERC S(DK_5) // %
  104. #define DK_AMPR S(DK_6) // &
  105. #define DK_SLSH S(DK_7) // /
  106. #define DK_LPRN S(DK_8) // (
  107. #define DK_RPRN S(DK_9) // )
  108. #define DK_EQL S(DK_0) // =
  109. #define DK_QUES S(DK_PLUS) // ?
  110. #define DK_GRV S(DK_ACUT) // ` (dead)
  111. // Row 2
  112. #define DK_CIRC S(DK_DIAE) // ^ (dead)
  113. // Row 3
  114. #define DK_ASTR S(DK_QUOT) // *
  115. // Row 4
  116. #define DK_RABK S(DK_LABK) // >
  117. #define DK_SCLN S(DK_COMM) // ;
  118. #define DK_COLN S(DK_DOT) // :
  119. #define DK_UNDS S(DK_MINS) // _
  120. /* AltGr symbols
  121. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  122. * │   │   │ @ │ £ │ $ │ € │   │ { │ [ │ ] │ } │   │ | │       │
  123. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  124. * │     │   │   │   │   │   │   │   │   │   │   │   │ ~ │     │
  125. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐    │
  126. * │      │   │   │   │   │   │   │   │   │   │   │   │   │    │
  127. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  128. * │    │ \ │   │   │   │   │   │   │ µ │   │   │   │          │
  129. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  130. * │    │    │    │                        │    │    │    │    │
  131. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  132. */
  133. // Row 1
  134. #define DK_AT ALGR(DK_2) // @
  135. #define DK_PND ALGR(DK_3) // £
  136. #define DK_DLR ALGR(DK_4) // $
  137. #define DK_EURO ALGR(DK_5) // €
  138. #define DK_LCBR ALGR(DK_7) // {
  139. #define DK_LBRC ALGR(DK_8) // [
  140. #define DK_RBRC ALGR(DK_9) // ]
  141. #define DK_RCBR ALGR(DK_0) // }
  142. #define DK_PIPE ALGR(DK_ACUT) // |
  143. // Row 2
  144. #define DK_TILD ALGR(DK_DIAE) // ~ (dead)
  145. // Row 4
  146. #define DK_BSLS ALGR(DK_LABK) // (backslash)
  147. #define DK_MICR ALGR(DK_M) // µ