Skip to content

Commit f8b3a5f

Browse files
Create keymap_danish_windows.h
1 parent 116f6ef commit f8b3a5f

1 file changed

Lines changed: 166 additions & 0 deletions

File tree

config/keymap_danish_windows.h

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
/**
2+
* This file includes custom keycodes for the danish input language setting.
3+
* If you only type in english, you can delete this file and it's import.
4+
* If you wish to replace this file with your preferred language, use
5+
* the qmk version as reference:
6+
* https://github.com/qmk/qmk_firmware/tree/master/quantum/keymap_extras
7+
*/
8+
9+
// Aliases
10+
/*
11+
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
12+
* │ ½ │ │ │ │ │ │ │ │ │ │ │ + │ ´ │ │
13+
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
14+
* │ │ │ │ │ │ │ │ │ │ │ │ å │ ¨ │ │
15+
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
16+
* │ │ │ │ │ │ │ │ │ │ │ æ │ ø │ ' │ │
17+
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
18+
* │ │ < │ │ │ │ │ │ │ │ , │ . │ - │ │
19+
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
20+
* │ │ │ │ │ │ │ │ │
21+
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
22+
*/
23+
#define DK_HALF GRAVE // ½
24+
#define DK_1 N1 // 1
25+
#define DK_2 N2 // 2
26+
#define DK_3 N3 // 3
27+
#define DK_4 N4 // 4
28+
#define DK_5 N5 // 5
29+
#define DK_6 N6 // 6
30+
#define DK_7 N7 // 7
31+
#define DK_8 N8 // 8
32+
#define DK_9 N9 // 9
33+
#define DK_0 N0 // 0
34+
#define DK_PLUS MINUS // +
35+
#define DK_ACUT EQUAL // ´ (dead)
36+
#define DK_Q Q // Q
37+
#define DK_W W // W
38+
#define DK_E E // E
39+
#define DK_R R // R
40+
#define DK_T T // T
41+
#define DK_Y Y // Y
42+
#define DK_U U // U
43+
#define DK_I I // I
44+
#define DK_O O // O
45+
#define DK_P P // P
46+
#define DK_AA LBKT // Å
47+
#define DK_DIAE SLASH // ¨ (dead)
48+
#define DK_A A // A
49+
#define DK_S S // S
50+
#define DK_D D // D
51+
#define DK_F F // F
52+
#define DK_G G // G
53+
#define DK_H H // H
54+
#define DK_J J // J
55+
#define DK_K K // K
56+
#define DK_L L // L
57+
#define DK_AE SEMI // Æ
58+
#define DK_OE APOS // Ø
59+
#define DK_QUOT NUHS // '
60+
#define DK_LABK NUBS // <
61+
#define DK_Z Z // Z
62+
#define DK_X X // X
63+
#define DK_C C // C
64+
#define DK_V V // V
65+
#define DK_B B // B
66+
#define DK_N N // N
67+
#define DK_M M // M
68+
#define DK_COMM COMMA // ,
69+
#define DK_DOT DOT // .
70+
#define DK_MINS SLASH // -
71+
72+
/* Shifted symbols
73+
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
74+
* │ § │ ! │ " │ # │ ¤ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ │
75+
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
76+
* │ │ │ │ │ │ │ │ │ │ │ │ Å │ ^ │ │
77+
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
78+
* │ │ │ │ │ │ │ │ │ │ │ Æ │ Ø │ * │ │
79+
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
80+
* │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
81+
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
82+
* │ │ │ │ │ │ │ │ │
83+
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
84+
*/
85+
#define DK_SECT LS(DK_HALF) // §
86+
#define DK_EXLM LS(DK_1) // !
87+
#define DK_DQUO LS(DK_2) // "
88+
#define DK_HASH LS(DK_3) // #
89+
#define DK_CURR LS(DK_4) // ¤
90+
#define DK_PERC LS(DK_5) // %
91+
#define DK_AMPR LS(DK_6) // &
92+
#define DK_SLSH LS(DK_7) // /
93+
#define DK_LPRN LS(DK_8) // (
94+
#define DK_RPRN LS(DK_9) // )
95+
#define DK_EQL LS(DK_0) // =
96+
#define DK_QUES LS(DK_PLUS) // ?
97+
#define DK_GRV LS(DK_ACUT) // ` (dead)
98+
#define DK_CIRC LS(DK_DIAE) // ^ (dead)
99+
#define DK_ASTR LS(DK_QUOT) // *
100+
#define DK_RABK LS(DK_LABK) // >
101+
#define DK_SCLN LS(DK_COMM) // ;
102+
#define DK_COLN LS(DK_DOT) // :
103+
#define DK_UNDS LS(DK_MINS) // _
104+
105+
/* AltGr symbols
106+
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
107+
* │ │ │ @ │ £ │ $ │ │ │ { │ [ │ ] │ } │ │ | │ │
108+
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
109+
* │ │ │ │ € │ │ │ │ │ │ │ │ │ ~ │ │
110+
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
111+
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
112+
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
113+
* │ │ \ │ │ │ │ │ │ │ │ │ │ │ │
114+
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
115+
* │ │ │ │ │ │ │ │ │
116+
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
117+
*/
118+
119+
#define DK_AT RA(DK_2) // @
120+
#define DK_PND RA(DK_3) // £
121+
#define DK_DLR RA(DK_4) // $
122+
#define DK_EURO RA(DK_5) // €
123+
#define DK_LCBR RA(DK_7) // {
124+
#define DK_LBRC RA(DK_8) // [
125+
#define DK_RBRC RA(DK_9) // ]
126+
#define DK_RCBR RA(DK_0) // }
127+
#define DK_PIPE RA(DK_ACUT) // |
128+
#define DK_TILD RA(DK_DIAE) // ~ (dead)
129+
#define DK_BSLS RA(DK_LABK) // (backslash)
130+
#define DK_MICR RA(DK_M) // µ
131+
132+
133+
134+
135+
136+
/* Alternative defintion - modifiy to match ZMK codes
137+
#define DK_AE SEMICOLON // Æ
138+
#define DK_OE SINGLE_QUOTE // Ø
139+
#define DK_AA LEFT_BRACKET // Å
140+
#define DK_QUOT DOUBLE_QUOTES // "
141+
#define DK_PLUS EQUALS // +
142+
#define DK_MINS MINUS // -
143+
#define DK_SCLN ALTGR(COMMA) // ; on AltGr + ,
144+
#define DK_COLN ALTGR(PERIOD) // : on AltGr + .
145+
#define DK_UNDS UNDERSCORE // _
146+
#define DK_COMM COMMA // ,
147+
#define DK_DOT PERIOD // .
148+
#define DK_LPRN LEFT_PAREN // (
149+
#define DK_RPRN RIGHT_PAREN // )
150+
#define DK_LCBR ALTGR(DIGIT7) // { on AltGr + 7
151+
#define DK_RCBR ALTGR(DIGIT0) // } on AltGr + 0
152+
#define DK_PIPE ALTGR(DIGIT1) // | on AltGr + 1
153+
#define DK_AMPR AMPERSAND // &
154+
#define DK_HASH ALTGR(RIGHT_BRACE) // # on AltGr + '
155+
#define DK_AT ALTGR(DIGIT2) // @ on AltGr + 2
156+
#define DK_DLR ALTGR(DIGIT4) // $ on AltGr + 4
157+
#define DK_EURO ALTGR(DIGIT5) // € on AltGr + 5
158+
#define DK_LBKT ALTGR(DIGIT8) // [ on AltGr + 8
159+
#define DK_RBKT ALTGR(DIGIT9) // ] on AltGr + 9
160+
#define DK_BSLS ALTGR(MINUS) // \ on AltGr + -
161+
#define DK_LESS SHIFT(COMMA) // < on Shift + ,
162+
#define DK_GRTR SHIFT(PERIOD) // > on Shift + .
163+
#define DK_QUES SHIFT(MINUS) // ? on Shift + -
164+
#define DK_EXLM SHIFT(DIGIT1) // ! on Shift + 1
165+
#define DK_DQUO SHIFT(DIGIT2) // " on Shift + 2
166+
*/

0 commit comments

Comments
 (0)