aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcarni <michele.carnaghi@googlemail.com>2020-06-13 09:29:22 +0200
committerGitHub <noreply@github.com>2020-06-13 00:29:22 -0700
commit1f42071238c57aff1ec2d441fe82ae2df4a0853f (patch)
tree9850d0eccd27f5fd39d9cbc78cdfae595daf241b
parent400423d10b53ea9e309e7b014aa4685961f25a4f (diff)
downloadqmk_firmware-1f42071238c57aff1ec2d441fe82ae2df4a0853f.tar.gz
qmk_firmware-1f42071238c57aff1ec2d441fe82ae2df4a0853f.zip
dz60 iso split - cleaned up the readme and replaced normal key with numpad key on numpad layer (#9339)
* README cleanup * replaced "normal" numbers with "keypad" numbers: KC_P4 replaced by KC_KP_P4 * replaced "normal" keys on Numpad Layer with the "KeyPad" keys KC_1 replaced by KC_P1 etc.
-rw-r--r--keyboards/dz60/keymaps/iso_split-spacebar/README.md123
-rw-r--r--keyboards/dz60/keymaps/iso_split-spacebar/keymap.c33
2 files changed, 95 insertions, 61 deletions
diff --git a/keyboards/dz60/keymaps/iso_split-spacebar/README.md b/keyboards/dz60/keymaps/iso_split-spacebar/README.md
index 7d96f2225..2600d2271 100644
--- a/keyboards/dz60/keymaps/iso_split-spacebar/README.md
+++ b/keyboards/dz60/keymaps/iso_split-spacebar/README.md
@@ -1,69 +1,86 @@
1# iso layout with a split spacebar 1# ISO layout with a split spacebar
2 2
3i needed to have an ISO layout 3I needed to have an ISO layout
4and i wanted to have a split spacebar 4and I wanted to have a split spacebar
5i couldn't find anything ready so i cobbled this together 5I couldn't find anything ready
6so i cobbled this together
6 7
7 8
8 9
9---- Layer 0 - BL 10## Layer 0 - BL
10this is basically the standard iso layout with the addition of the split spacebar 11
12standard ISO layout with the addition of the split spacebar
11menu key (KC_APP) is used to move to the next layer 13menu key (KC_APP) is used to move to the next layer
12the key in between the two spacebars is the function key 14the key in between the two spacebars is the function key
13 *,-----------------------------------------------------------.
14 *| ' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |
15 *|-----------------------------------------------------------|
16 *| Tab | q | w | e | r | t | y | u | i | o | p | [ | ] |enter|
17 *|------------------------------------------------------ |
18 *| Caps | a | s | d | f | g | h | j | k | l | ; | ' | # | |
19 *|-----------------------------------------------------------|
20 *|Shft| < | z | x | c | v | b | n | m | , | . | / | Shift |
21 *|-----------------------------------------------------------|
22 *|Ctrl|Gui |Alt | Space | FN | Space |Alt |Gui | NL |Ctrl |
23 *`-----------------------------------------------------------'
24 15
25---- Layer 1 - FL 16```
17,-----------------------------------------------------------.
18| ' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |
19|-----------------------------------------------------------|
20| Tab | q | w | e | r | t | y | u | i | o | p | [ | ] |enter|
21|------------------------------------------------------ |
22| Caps | a | s | d | f | g | h | j | k | l | ; | ' | # | |
23|-----------------------------------------------------------|
24|Shft| < | z | x | c | v | b | n | m | , | . | / | Shift |
25|-----------------------------------------------------------|
26|Ctrl|Gui |Alt | Space | FN | Space |Alt |Gui | NL |Ctrl |
27`-----------------------------------------------------------'
28```
29
30## Layer 1 - FL
31
26quite standard function layer 32quite standard function layer
27arrow keys and mouse movement/buttons on the home row 33arrow keys and mouse movement/buttons on the home row
28 *,-----------------------------------------------------------.
29 *|ESC|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| DEL |
30 *|-----------------------------------------------------------|
31 *| | | | | | | | | | |prt| | | |
32 *|------------------------------------------------------ |
33 *| |m l|m d|m u|m r| | | l | d | u | r | | | |
34 *|-----------------------------------------------------------|
35 *| | | | | |mb1|mb2| |hm |pgd|pgu|end| |
36 *|-----------------------------------------------------------|
37 *| | | | | | | | | | |
38 *`-----------------------------------------------------------'
39 34
40---- Layer 2 - NL 35```
36,-----------------------------------------------------------.
37|ESC|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| DEL |
38|-----------------------------------------------------------|
39| | | | | | | | | | |prt| | | |
40|------------------------------------------------------ |
41| |m l|m d|m u|m r| | | l | d | u | r | | | |
42|-----------------------------------------------------------|
43| | | | | |mb1|mb2| |hm |pgd|pgu|end| |
44|-----------------------------------------------------------|
45| | | | | | | | | | |
46`-----------------------------------------------------------'
47```
48
49## Layer 2 - NL
50
41numbers numbers numbers... 51numbers numbers numbers...
42first key (top left) to return to BL 52first key (top left) to return to BL
43menu key (KC_APP) is used to move to the next layer 53menu key (KC_APP) is used to move to the next layer
44 *,-----------------------------------------------------------. 54
45 *|BL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | | 55```
46 *|-----------------------------------------------------------| 56,-----------------------------------------------------------.
47 *| | 4 | 5 | 6 | * | / | | 4 | 5 | 6 | * | / | ] | | 57|BL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | |
48 *|------------------------------------------------------ | 58|-----------------------------------------------------------|
49 *| | 7 | 8 | 9 | + | - | | 1 | 2 | 3 | + | - | | | 59| | 4 | 5 | 6 | * | / | | 4 | 5 | 6 | * | / | ] | |
50 *|-----------------------------------------------------------| 60|------------------------------------------------------ |
51 *| | | 0 | , | . | = | | | 0 | , | . | = | | 61| | 7 | 8 | 9 | + | - | | 1 | 2 | 3 | + | - | | |
52 *|-----------------------------------------------------------| 62|-----------------------------------------------------------|
53 *| | | | | | | | | RL | | 63| | | 0 | , | . | = | | | 0 | , | . | = | |
54 *`-----------------------------------------------------------' 64|-----------------------------------------------------------|
65| | | | | | | | | RL | |
66`-----------------------------------------------------------'
67```
55 68
56---- Layer 3 - BL 69## Layer 3 - BL
70
57all the fancy lights 71all the fancy lights
58and useful reset button (top right) 72and useful reset button (top right)
59 *,-----------------------------------------------------------. 73
60 *|BL | | | | | | | | | | | | |Reset | 74```
61 *|-----------------------------------------------------------| 75,-----------------------------------------------------------.
62 *| |tog|mod|hui|hud| | |sai|sad|vai|vad| | | | 76|BL | | | | | | | | | | | | |Reset |
63 *|------------------------------------------------------ | 77|-----------------------------------------------------------|
64 *| |sta|bre|rai|swi| | |sna|kni|gra|xms| | | | 78| |tog|mod|hui|hud| | |sai|sad|vai|vad| | | |
65 *|-----------------------------------------------------------| 79|------------------------------------------------------ |
66 *| | |bd |bt |bi |bs | | | | | | | | 80| |sta|bre|rai|swi| | |sna|kni|gra|xms| | | |
67 *|-----------------------------------------------------------| 81|-----------------------------------------------------------|
68 *| | | | | | | | | BL | | 82| | |bd |bt |bi |bs | | | | | | | |
69 *`-----------------------------------------------------------' 83|-----------------------------------------------------------|
84| | | | | | | | | BL | |
85`-----------------------------------------------------------'
86```
diff --git a/keyboards/dz60/keymaps/iso_split-spacebar/keymap.c b/keyboards/dz60/keymaps/iso_split-spacebar/keymap.c
index a54c06f55..a9e811f9a 100644
--- a/keyboards/dz60/keymaps/iso_split-spacebar/keymap.c
+++ b/keyboards/dz60/keymaps/iso_split-spacebar/keymap.c
@@ -112,12 +112,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
112 * `-----------------------------------------------------------' 112 * `-----------------------------------------------------------'
113 */ 113 */
114 [NL] = LAYOUT_60_iso_split( 114 [NL] = LAYOUT_60_iso_split(
115 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 115 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14
116 TG(NL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, 116 TG(NL), KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, KC_PPLS, KC_PMNS, _______,
117 _______, KC_4, KC_5, KC_6, KC_PAST, KC_PSLS, _______, KC_4, KC_5, KC_6, KC_PAST, KC_PSLS, _______, 117 _______, KC_P4, KC_P5, KC_P6, KC_PAST, KC_PSLS, _______, KC_P4, KC_P5, KC_P6, KC_PAST, KC_PSLS, _______,
118 _______, KC_7, KC_8, KC_9, KC_PPLS, KC_PMNS, _______, KC_1, KC_2, KC_3, KC_PPLS, KC_PMNS, _______, _______, 118 _______, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PMNS, _______, KC_P1, KC_P2, KC_P3, KC_PPLS, KC_PMNS, _______, _______,
119 _______, KC_0, KC_COMM, KC_DOT, KC_EQL, _______, _______, _______, KC_0, KC_COMM, KC_DOT, KC_EQL, _______, 119 _______, KC_P0, KC_COMM, KC_DOT, KC_PEQL, KC_PSLS, KC_PMNS, _______, KC_P0, KC_COMM, KC_DOT, KC_PEQL, _______,
120 _______, _______, _______, _______, MO(FL), _______, _______, _______, TG(RL), _______), 120 _______, _______, _______, _______, MO(FL), _______, _______, _______, TG(RL), _______),
121 121
122 /* Keymap RL: RGB Layer 122 /* Keymap RL: RGB Layer
123 * 123 *
@@ -150,6 +150,23 @@ void persistent_default_layer_set(uint16_t default_layer) {
150 default_layer_set(default_layer); 150 default_layer_set(default_layer);
151} 151}
152 152
153// always enable num lock on layer NL and disable on other layers
154// thanks to spidey3 & Erovia on discord
155layer_state_t layer_state_set_user(layer_state_t state) {
156 switch (get_highest_layer(state)) {
157 case NL:
158 if (!host_keyboard_led_state().num_lock) {
159 tap_code16(KC_NLCK);
160 }
161 break;
162 default: // for any other layers, or the default layer
163 if (host_keyboard_led_state().num_lock) {
164 tap_code16(KC_NLCK);
165 }
166 break;
167 }
168 return state;
169}
153 170
154// layer-activated RGB underglow 171// layer-activated RGB underglow
155 172
@@ -172,11 +189,11 @@ void matrix_scan_user(void) {
172 break; 189 break;
173 case NL: 190 case NL:
174 RGB_NL_MODE; 191 RGB_NL_MODE;
175 // RGB_NL_LIGHT; 192 RGB_NL_LIGHT;
176 break; 193 break;
177 case RL: 194 case RL:
178 RGB_RL_MODE; 195 RGB_RL_MODE;
179 // RGB_RL_LIGHT; 196 RGB_RL_LIGHT;
180 break; 197 break;
181 } 198 }
182 199