summaryrefslogtreecommitdiff
path: root/quantum/keymap_extras/keymap_norwegian.c
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2016-02-11 20:40:47 -0500
committerErez Zukerman <bulk@ezuk.org>2016-02-11 20:40:47 -0500
commitf4fc7fd4d560058c5f12e4c644e7192fc239f3e6 (patch)
tree962a893a3db8afbd0af88c56426a3911809834f3 /quantum/keymap_extras/keymap_norwegian.c
parent9f6966f7654ca8efd1c3fbdfcbdd769ad5761259 (diff)
parent2f7cda63d07da9682c09f479ab2888d9f224f69c (diff)
downloadqmk_firmware-f4fc7fd4d560058c5f12e4c644e7192fc239f3e6.tar.gz
qmk_firmware-f4fc7fd4d560058c5f12e4c644e7192fc239f3e6.zip
Merge pull request #139 from joarau/norwegian-colemak-ergodox-with-norwegian-definitions
Norwegian Colemak Ergodox and Norwegian key definitions
Diffstat (limited to 'quantum/keymap_extras/keymap_norwegian.c')
-rw-r--r--quantum/keymap_extras/keymap_norwegian.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_norwegian.c b/quantum/keymap_extras/keymap_norwegian.c
new file mode 100644
index 0000000000..018bfeae59
--- /dev/null
+++ b/quantum/keymap_extras/keymap_norwegian.c
@@ -0,0 +1,41 @@
+#ifndef KEYMAP_NORWEGIAN_H
+#define KEYMAP_NORWEGIAN_H
+
+#include "keymap_nordic.h"
+
+// There are slight differrences in the keyboards in the nordic contries
+
+// Norwegian redifinitions from the nordic keyset
+#undef NO_ACUT
+#define NO_ACUT ALGR(NO_BSLS) // ´
+#undef NO_AE
+#define NO_AE KC_QUOT // æ
+#undef NO_BSLS
+#define NO_BSLS KC_EQL // '\'
+#undef NO_CIRC
+#define NO_CIRC LSFT(C_RBRC) // ^
+#undef NO_GRV
+#define NO_GRV LSFT(NO_BSLS) //
+#undef NO_OSLH
+#define NO_OSLH KC_SCLN // ø
+#undef NO_PIPE
+#define NO_PIPE KC_GRV // |
+
+// Additional norwegian keys not defined in the nordic keyset
+#define NO_AA KC_LBRC // å
+#define NO_ASTR LSFT(KC_BSLS) // *
+
+// Norwegian unique MAC characters
+#define NO_ACUT_MAC KC_EQL // =
+#define NO_APOS_MAC KC_NUBS // '
+#define NO_AT_MAC KC_BSLS // @
+#define NO_BSLS_MAC ALGR(LSFT(KC_7)) // '\'
+#define NO_DLR_MAC LSFT(KC_4) // $
+#define NO_GRV_MAC ALGR(NO_BSLS) // `
+#define NO_GRTR_MAC LSFT(KC_GRV) // >
+#define NO_LCBR_MAC ALGR(LSFT(KC_8)) // }
+#define NO_LESS_MAC KC_GRV // >
+#define NO_PIPE_MAC ALGR(KC_7) // |
+#define NO_RCBR_MAC ALGR(LSFT(KC_9)) // }
+
+#endif