aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_extras/keymap_norwegian.h
blob: eb3b0b040e1a449a09b4ade76c7886f5e620aff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Copyright 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_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(KC_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