keymap_german_ch.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /* Copyright 2016 heartsekai
  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. #ifndef KEYMAP_SWISS_GERMAN
  17. #define KEYMAP_SWISS_GERMAN
  18. #include "keymap.h"
  19. // Alt gr
  20. #define ALGR(kc) RALT(kc)
  21. #define CH_ALGR KC_RALT
  22. // normal characters
  23. #define CH_Z KC_Y
  24. #define CH_Y KC_Z
  25. #define CH_A KC_A
  26. #define CH_B KC_B
  27. #define CH_C KC_C
  28. #define CH_D KC_D
  29. #define CH_E KC_E
  30. #define CH_F KC_F
  31. #define CH_G KC_G
  32. #define CH_H KC_H
  33. #define CH_I KC_I
  34. #define CH_J KC_J
  35. #define CH_K KC_K
  36. #define CH_L KC_L
  37. #define CH_M KC_M
  38. #define CH_N KC_N
  39. #define CH_O KC_O
  40. #define CH_P KC_P
  41. #define CH_Q KC_Q
  42. #define CH_R KC_R
  43. #define CH_S KC_S
  44. #define CH_T KC_T
  45. #define CH_U KC_U
  46. #define CH_V KC_V
  47. #define CH_W KC_W
  48. #define CH_X KC_X
  49. #define CH_0 KC_0
  50. #define CH_1 KC_1
  51. #define CH_2 KC_2
  52. #define CH_3 KC_3
  53. #define CH_4 KC_4
  54. #define CH_5 KC_5
  55. #define CH_6 KC_6
  56. #define CH_7 KC_7
  57. #define CH_8 KC_8
  58. #define CH_9 KC_9
  59. #define CH_DOT KC_DOT
  60. #define CH_COMM KC_COMM
  61. #define CH_QUOT KC_MINS // ' ? ´
  62. #define CH_AE KC_QUOT
  63. #define CH_UE KC_LBRC
  64. #define CH_OE KC_SCLN
  65. #define CH_PARA KC_GRAVE // secction sign § and °
  66. #define CH_CARR KC_EQL // carret ^ ` ~
  67. #define CH_DIER KC_RBRC // dieresis ¨ ! ]
  68. #define CH_DLR KC_BSLS // $ £ }
  69. #define CH_LESS KC_NUBS // < and > and backslash
  70. #define CH_MINS KC_SLSH // - and _
  71. // shifted characters
  72. #define CH_RING LSFT(CH_PARA) // °
  73. #define CH_PLUS LSFT(KC_1) // +
  74. #define CH_DQOT LSFT(KC_2) // "
  75. #define CH_PAST LSFT(KC_3) // *
  76. #define CH_CELA LSFT(KC_4) // ç
  77. #define CH_PERC LSFT(KC_5) // %
  78. #define CH_AMPR LSFT(KC_6) // &
  79. #define CH_SLSH LSFT(KC_7) // /
  80. #define CH_LPRN LSFT(KC_8) // (
  81. #define CH_RPRN LSFT(KC_9) // )
  82. #define CH_EQL LSFT(KC_0) // =
  83. #define CH_QST LSFT(CH_QUOT) // ?
  84. #define CH_GRV LSFT(CH_CARR) // `
  85. #define CH_EXLM LSFT(CH_DIER) // !
  86. #define CH_POND LSFT(CH_DLR) // £
  87. #define CH_MORE LSFT(CH_LESS) // >
  88. #define CH_COLN LSFT(KC_DOT) // :
  89. #define CH_SCLN LSFT(KC_COMM) // ;
  90. #define CH_UNDS LSFT(CH_MINS) // _
  91. // Alt Gr-ed characters
  92. #define CH_BRBR ALGR(KC_1) // ¦ brocken bar
  93. #define CH_AT ALGR(KC_2) // @
  94. #define CH_HASH ALGR(KC_3) // #
  95. #define CH_NOTL ALGR(KC_6) // ¬ negative logic
  96. #define CH_PIPE ALGR(KC_7) // |
  97. #define CH_CENT ALGR(KC_8) // ¢ cent
  98. #define CH_ACUT ALGR(CH_QUOT) // ´
  99. #define CH_TILD ALGR(CH_CARR) // ~
  100. #define CH_EURO ALGR(KC_E) // €
  101. #define CH_LBRC ALGR(CH_UE) // [
  102. #define CH_RBRC ALGR(CH_DIER) // ]
  103. #define CH_LCBR ALGR(CH_AE) // {
  104. #define CH_RCBR ALGR(CH_DLR) // }
  105. #define CH_BSLS ALGR(CH_LESS) // backslash
  106. #endif