1 /* Copyright 2015-2016 Jack Humbert
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_NORDIC_H
17 #define KEYMAP_NORDIC_H
22 #define ALGR(kc) RALT(kc)
23 #define NO_ALGR KC_RALT
26 #define NO_HALF KC_GRV
27 #define NO_PLUS KC_MINS
28 #define NO_ACUT KC_EQL
31 #define NO_QUOT KC_RBRC // this is the "umlaut" char on Nordic keyboards, Apple layout
33 #define NO_OSLH KC_QUOT
34 #define NO_APOS KC_NUHS
36 #define NO_LESS KC_NUBS
37 #define NO_MINS KC_SLSH
40 #define NO_SECT LSFT(NO_HALF)
41 #define NO_QUO2 LSFT(KC_2)
42 #define NO_BULT LSFT(KC_4)
43 #define NO_AMPR LSFT(KC_6)
44 #define NO_SLSH LSFT(KC_7)
45 #define NO_LPRN LSFT(KC_8)
46 #define NO_RPRN LSFT(KC_9)
47 #define NO_EQL LSFT(KC_0)
48 #define NO_QUES LSFT(NO_PLUS)
49 #define NO_GRV LSFT(NO_ACUT)
51 #define NO_CIRC LSFT(NO_QUOT)
53 #define NO_GRTR LSFT(NO_LESS)
54 #define NO_SCLN LSFT(KC_COMM)
55 #define NO_COLN LSFT(KC_DOT)
56 #define NO_UNDS LSFT(NO_MINS)
58 // Alt Gr-ed characters
59 #define NO_AT ALGR(KC_2)
60 #define NO_PND ALGR(KC_3)
61 #define NO_DLR ALGR(KC_4)
62 #define NO_LCBR ALGR(KC_7)
63 #define NO_LBRC ALGR(KC_8)
64 #define NO_RBRC ALGR(KC_9)
65 #define NO_RCBR ALGR(KC_0)
66 #define NO_PIPE ALGR(KC_NUBS)
68 #define NO_EURO ALGR(KC_E)
69 #define NO_TILD ALGR(NO_QUOT)
71 #define NO_BSLS ALGR(KC_MINS)
72 #define NO_MU ALGR(KC_M)