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.

112 lines
3.2 KiB

  1. /* Copyright 2016 Stephen Bösebeck
  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_GERMAN_OSX
  17. #define KEYMAP_GERMAN_OSX
  18. #include "keymap.h"
  19. // Alt gr
  20. // normal characters
  21. #define DE_OSX_Z KC_Y
  22. #define DE_OSX_Y KC_Z
  23. #define DE_OSX_A KC_A
  24. #define DE_OSX_B KC_B
  25. #define DE_OSX_C KC_C
  26. #define DE_OSX_D KC_D
  27. #define DE_OSX_E KC_E
  28. #define DE_OSX_F KC_F
  29. #define DE_OSX_G KC_G
  30. #define DE_OSX_H KC_H
  31. #define DE_OSX_I KC_I
  32. #define DE_OSX_J KC_J
  33. #define DE_OSX_K KC_K
  34. #define DE_OSX_L KC_L
  35. #define DE_OSX_M KC_M
  36. #define DE_OSX_N KC_N
  37. #define DE_OSX_O KC_O
  38. #define DE_OSX_P KC_P
  39. #define DE_OSX_Q KC_Q
  40. #define DE_OSX_R KC_R
  41. #define DE_OSX_S KC_S
  42. #define DE_OSX_T KC_T
  43. #define DE_OSX_U KC_U
  44. #define DE_OSX_V KC_V
  45. #define DE_OSX_W KC_W
  46. #define DE_OSX_X KC_X
  47. #define DE_OSX_0 KC_0
  48. #define DE_OSX_1 KC_1
  49. #define DE_OSX_2 KC_2
  50. #define DE_OSX_3 KC_3
  51. #define DE_OSX_4 KC_4
  52. #define DE_OSX_5 KC_5
  53. #define DE_OSX_6 KC_6
  54. #define DE_OSX_7 KC_7
  55. #define DE_OSX_8 KC_8
  56. #define DE_OSX_9 KC_9
  57. #define DE_OSX_DOT KC_DOT
  58. #define DE_OSX_COMM KC_COMM
  59. #define DE_OSX_SS KC_MINS
  60. #define DE_OSX_AE KC_QUOT
  61. #define DE_OSX_UE KC_LBRC
  62. #define DE_OSX_OE KC_SCLN
  63. #define DE_OSX_CIRC KC_NUBS // accent circumflex ^ and ring °
  64. #define DE_OSX_ACUT KC_EQL // accent acute ´ and grave `
  65. #define DE_OSX_PLUS KC_RBRC // + and * and ~
  66. #define DE_OSX_HASH KC_BSLS // # and '
  67. #define DE_OSX_LESS KC_GRV // < and > and |
  68. #define DE_OSX_MINS KC_SLSH // - and _
  69. // shifted characters
  70. #define DE_OSX_RING LSFT(DE_OSX_CIRC) // °
  71. #define DE_OSX_EXLM LSFT(KC_1) // !
  72. #define DE_OSX_DQOT LSFT(KC_2) // "
  73. #define DE_OSX_PARA LSFT(KC_3) // §
  74. #define DE_OSX_DLR LSFT(KC_4) // $
  75. #define DE_OSX_PERC LSFT(KC_5) // %
  76. #define DE_OSX_AMPR LSFT(KC_6) // &
  77. #define DE_OSX_SLSH LSFT(KC_7) // /
  78. #define DE_OSX_LPRN LSFT(KC_8) // (
  79. #define DE_OSX_RPRN LSFT(KC_9) // )
  80. #define DE_OSX_EQL LSFT(KC_0) // =
  81. #define DE_OSX_QST LSFT(DE_OSX_SS) // ?
  82. #define DE_OSX_GRV LSFT(DE_OSX_ACUT) // `
  83. #define DE_OSX_ASTR LSFT(DE_OSX_PLUS) // *
  84. #define DE_OSX_QUOT LSFT(DE_OSX_HASH) // '
  85. #define DE_OSX_MORE LSFT(DE_OSX_LESS) // >
  86. #define DE_OSX_COLN LSFT(KC_DOT) // :
  87. #define DE_OSX_SCLN LSFT(KC_COMM) // ;
  88. #define DE_OSX_UNDS LSFT(DE_OSX_MINS) // _
  89. // Alt-ed characters
  90. //#define DE_OSX_SQ2 LALT(KC_2) // ²
  91. //#define DE_OSX_SQ3 LALT(KC_3) // ³
  92. #define DE_OSX_LCBR LALT(KC_8) // {
  93. #define DE_OSX_LBRC LALT(KC_5) // [
  94. #define DE_OSX_RBRC LALT(KC_6) // ]
  95. #define DE_OSX_RCBR LALT(KC_9) // }
  96. #define DE_OSX_BSLS LALT(LSFT(KC_7)) // backslash
  97. #define DE_OSX_AT LALT(DE_OSX_L) // @
  98. #define DE_OSX_EURO LALT(KC_E) // €
  99. #define DE_OSX_TILD LALT(DE_OSX_N) // ~
  100. #define DE_OSX_PIPE LALT(DE_OSX_7) // |
  101. #endif