1 /* Copyright 2016 heartsekai
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.
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.
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/>.
16 #ifndef KEYMAP_SWISS_GERMAN
17 #define KEYMAP_SWISS_GERMAN
22 #define ALGR(kc) RALT(kc)
23 #define CH_ALGR KC_RALT
37 // The ChibiOS ch.h file defines this...
70 #define CH_COMM KC_COMM
72 #define CH_QUOT KC_MINS // ' ? ´
77 #define CH_PARA KC_GRAVE // secction sign § and °
78 #define CH_CARR KC_EQL // carret ^ ` ~
79 #define CH_DIER KC_RBRC // dieresis ¨ ! ]
80 #define CH_DLR KC_BSLS // $ £ }
81 #define CH_LESS KC_NUBS // < and > and backslash
82 #define CH_MINS KC_SLSH // - and _
85 #define CH_RING LSFT(CH_PARA) // °
86 #define CH_PLUS LSFT(KC_1) // +
87 #define CH_DQOT LSFT(KC_2) // "
88 #define CH_PAST LSFT(KC_3) // *
89 #define CH_CELA LSFT(KC_4) // ç
90 #define CH_PERC LSFT(KC_5) // %
91 #define CH_AMPR LSFT(KC_6) // &
92 #define CH_SLSH LSFT(KC_7) // /
93 #define CH_LPRN LSFT(KC_8) // (
94 #define CH_RPRN LSFT(KC_9) // )
95 #define CH_EQL LSFT(KC_0) // =
96 #define CH_QST LSFT(CH_QUOT) // ?
97 #define CH_GRV LSFT(CH_CARR) // `
98 #define CH_EXLM LSFT(CH_DIER) // !
99 #define CH_POND LSFT(CH_DLR) // £
100 #define CH_MORE LSFT(CH_LESS) // >
101 #define CH_COLN LSFT(KC_DOT) // :
102 #define CH_SCLN LSFT(KC_COMM) // ;
103 #define CH_UNDS LSFT(CH_MINS) // _
105 // Alt Gr-ed characters
106 #define CH_BRBR ALGR(KC_1) // ¦ brocken bar
107 #define CH_AT ALGR(KC_2) // @
108 #define CH_HASH ALGR(KC_3) // #
109 #define CH_NOTL ALGR(KC_6) // ¬ negative logic
110 #define CH_PIPE ALGR(KC_7) // |
111 #define CH_CENT ALGR(KC_8) // ¢ cent
112 #define CH_ACUT ALGR(CH_QUOT) // ´
113 #define CH_TILD ALGR(CH_CARR) // ~
114 #define CH_EURO ALGR(KC_E) // €
115 #define CH_LBRC ALGR(CH_UE) // [
116 #define CH_RBRC ALGR(CH_DIER) // ]
117 #define CH_LCBR ALGR(CH_AE) // {
118 #define CH_RCBR ALGR(CH_DLR) // }
119 #define CH_BSLS ALGR(CH_LESS) // backslash