aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorTorben Hoffmann <torben.lehoff@gmail.com>2019-05-10 07:12:11 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-09 22:12:11 -0700
commitd3f3da5112c241e1203bd91ae16cc7b0aa075c0c (patch)
tree824896276bb272ef949cb88dc0b66487675950d0 /quantum
parent7dcf9237d5cdf83e6f357755c19c14e92e6593c0 (diff)
downloadqmk_firmware-d3f3da5112c241e1203bd91ae16cc7b0aa075c0c.tar.gz
qmk_firmware-d3f3da5112c241e1203bd91ae16cc7b0aa075c0c.zip
Norman layout for the minidox keyboard (#5747)
* Norman layout with Lower and Raise layers working * Add keymap_extra def for Norman layout * Re-org'ed the modifiers as explained in the Readme * Corrected colour legend for KLE that the Readme links to * Use #pragma once in header file * Use pragma once and move user config to config.h * Move definitions to the right file and correct link in Readme * Move def of NM_COLN to the logical place in header file * Add sendstring_norman.h for when the laptop layout is not QWERTY * Update quantum/keymap_extras/sendstring_norman.h Co-Authored-By: lehoff <torben.lehoff@gmail.com>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/keymap_extras/keymap_norman.h54
-rw-r--r--quantum/keymap_extras/sendstring_norman.h39
2 files changed, 93 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_norman.h b/quantum/keymap_extras/keymap_norman.h
new file mode 100644
index 000000000..995b1b8a0
--- /dev/null
+++ b/quantum/keymap_extras/keymap_norman.h
@@ -0,0 +1,54 @@
1
2/* Copyright 2019 Torben Hoffmann
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include "keymap.h"
20// For software implementation of norman
21#define NM_Q KC_Q
22#define NM_W KC_W
23#define NM_D KC_E
24#define NM_F KC_R
25#define NM_K KC_T
26#define NM_J KC_Y
27#define NM_U KC_U
28#define NM_R KC_I
29#define NM_L KC_O
30#define NM_SCLN KC_P
31#define NM_COLN LSFT(NM_SCLN)
32
33#define NM_A KC_A
34#define NM_S KC_S
35#define NM_E KC_D
36#define NM_T KC_F
37#define NM_G KC_G
38#define NM_Y KC_H
39#define NM_N KC_J
40#define NM_I KC_K
41#define NM_O KC_L
42#define NM_H KC_SCLN
43
44#define NM_Z KC_Z
45#define NM_X KC_X
46#define NM_C KC_C
47#define NM_V KC_V
48#define NM_B KC_B
49#define NM_P KC_N
50#define NM_M KC_M
51#define NM_COMM KC_COMM
52#define NM_DOT KC_DOT
53#define NM_SLSH KC_SLSH
54
diff --git a/quantum/keymap_extras/sendstring_norman.h b/quantum/keymap_extras/sendstring_norman.h
new file mode 100644
index 000000000..57d450ca8
--- /dev/null
+++ b/quantum/keymap_extras/sendstring_norman.h
@@ -0,0 +1,39 @@
1/* Copyright 2019 Torben Hoffmann
2 *
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.
7 *
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.
12 *
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/>.
15 */
16/* Sendstring definitions for the Colemak layout */
17#pragma once
18
19#include "keymap_norman.h"
20
21const uint8_t ascii_to_keycode_lut[0x80] PROGMEM = {
22 0, 0, 0, 0, 0, 0, 0, 0,
23 KC_BSPC, KC_TAB, KC_ENT, 0, 0, 0, 0, 0,
24 0, 0, 0, 0, 0, 0, 0, 0,
25 0, 0, 0, KC_ESC, 0, 0, 0, 0,
26 KC_SPC, KC_1, KC_QUOT, KC_3, KC_4, KC_5, KC_7, KC_QUOT,
27 KC_9, KC_0, KC_8, KC_EQL, KC_COMM, KC_MINS, KC_DOT, KC_SLSH,
28 KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7,
29 KC_8, KC_9, NM_SCLN, NM_SCLN, KC_COMM, KC_EQL, KC_DOT, KC_SLSH,
30 KC_2, NM_A, NM_B, NM_C, NM_D, NM_E, NM_F, NM_G,
31 NM_H, NM_I, NM_J, NM_K, NM_L, NM_M, NM_N, NM_O,
32 NM_P, NM_Q, NM_R, NM_S, NM_T, NM_U, NM_V, NM_W,
33 NM_X, NM_Y, NM_Z, KC_LBRC, KC_BSLS, KC_RBRC, KC_6, KC_MINS,
34 KC_GRV, NM_A, NM_B, NM_C, NM_D, NM_E, NM_F, NM_G,
35 NM_H, NM_I, NM_J, NM_K, NM_L, NM_M, NM_N, NM_O,
36 NM_P, NM_Q, NM_R, NM_S, NM_T, NM_U, NM_V, NM_W,
37 NM_X, NM_Y, NM_Z, KC_LBRC, KC_BSLS, KC_RBRC, KC_GRV, KC_DEL
38};
39