]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/keymap_extras/keymap_nordic.h
QMK CLI and JSON keymap support (#6176)
[qmk_firmware.git] / quantum / keymap_extras / keymap_nordic.h
index 02a704216a984bd41a5e834166e90ea67f4daedf..551a4212b26ec680774649cf8b09bfdc86d27d06 100644 (file)
@@ -1,11 +1,22 @@
+/* Copyright 2015-2016 Jack Humbert
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 #ifndef KEYMAP_NORDIC_H
 #define KEYMAP_NORDIC_H
 
-#include "keymap_common.h"
-
-// Alt gr
-#define ALGR(kc) kc | 0x1400
-#define NO_ALGR KC_RALT
+#include "keymap.h"
 
 // Normal characters
 #define NO_HALF        KC_GRV
@@ -13,7 +24,7 @@
 #define NO_ACUT        KC_EQL
 
 #define NO_AM  KC_LBRC
-#define NO_QUOT        KC_RBRC
+#define NO_QUOT        KC_RBRC // this is the "umlaut" char on Nordic keyboards, Apple layout
 #define NO_AE  KC_SCLN
 #define NO_OSLH        KC_QUOT
 #define        NO_APOS KC_NUHS
@@ -25,7 +36,7 @@
 #define NO_SECT LSFT(NO_HALF)
 #define NO_QUO2        LSFT(KC_2)
 #define NO_BULT LSFT(KC_4)
-#define NO_AMP LSFT(KC_6)
+#define NO_AMPR        LSFT(KC_6)
 #define NO_SLSH LSFT(KC_7)
 #define NO_LPRN        LSFT(KC_8)
 #define NO_RPRN        LSFT(KC_9)
 #define NO_LBRC ALGR(KC_8)
 #define NO_RBRC ALGR(KC_9)
 #define NO_RCBR        ALGR(KC_0)
-#define NO_PIPE ALGR(NO_ACUT)
+#define NO_PIPE ALGR(KC_NUBS)
 
 #define NO_EURO ALGR(KC_E)
 #define NO_TILD ALGR(NO_QUOT)
 
-#define NO_BSLS ALGR(NO_LESS)
+#define NO_BSLS ALGR(KC_MINS)
 #define NO_MU  ALGR(KC_M)
 
-#endif
\ No newline at end of file
+#endif