aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/keymaps')
-rw-r--r--keyboards/planck/keymaps/dshields/Makefile12
-rw-r--r--keyboards/planck/keymaps/dshields/config.h31
-rw-r--r--keyboards/planck/keymaps/dshields/keyboard-layout.jpgbin0 -> 50615 bytes
-rw-r--r--keyboards/planck/keymaps/dshields/keymap.c100
-rw-r--r--keyboards/planck/keymaps/dshields/readme.md12
-rw-r--r--keyboards/planck/keymaps/khord/config.h1
-rw-r--r--keyboards/planck/keymaps/khord/keymap.c42
-rw-r--r--keyboards/planck/keymaps/lae3/Makefile23
-rw-r--r--keyboards/planck/keymaps/lae3/config.h8
-rw-r--r--keyboards/planck/keymaps/lae3/keymap.c262
-rw-r--r--keyboards/planck/keymaps/lae3/readme.md111
-rw-r--r--keyboards/planck/keymaps/lucas/keymap.c6
-rw-r--r--keyboards/planck/keymaps/priyadi/config.h3
-rw-r--r--keyboards/planck/keymaps/vifon/keymap.c3
14 files changed, 605 insertions, 9 deletions
diff --git a/keyboards/planck/keymaps/dshields/Makefile b/keyboards/planck/keymaps/dshields/Makefile
new file mode 100644
index 000000000..9e18a3542
--- /dev/null
+++ b/keyboards/planck/keymaps/dshields/Makefile
@@ -0,0 +1,12 @@
1ifndef QUANTUM_DIR
2 include ../../../../Makefile
3endif
4
5MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
6COMMAND_ENABLE = yes # Commands for debug and configuration
7BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
8# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
9SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
10TAP_DANCE_ENABLE = yes
11AUDIO_ENABLE = no
12API_SYSEX_ENABLE = no
diff --git a/keyboards/planck/keymaps/dshields/config.h b/keyboards/planck/keymaps/dshields/config.h
new file mode 100644
index 000000000..4d5be0a26
--- /dev/null
+++ b/keyboards/planck/keymaps/dshields/config.h
@@ -0,0 +1,31 @@
1#ifndef CONFIG_USER_H
2#define CONFIG_USER_H
3
4#include "../../config.h"
5
6#define _______ KC_TRNS
7#define XXXXXXX KC_NO
8
9#define ONESHOT_TAP_TOGGLE 2
10#define ONESHOT_TIMEOUT 500
11
12#define MOUSEKEY_INTERVAL 20
13#define MOUSEKEY_DELAY 0
14#define MOUSEKEY_TIME_TO_MAX 60
15#define MOUSEKEY_MAX_SPEED 7
16#define MOUSEKEY_WHEEL_DELAY 0
17
18#define DM_PLAY DYN_MACRO_PLAY1
19#define DM_STRT DYN_REC_START1
20#define DM_STOP DYN_REC_STOP
21
22#define OSL_RSE OSL(RSE)
23#define OSL_LWR OSL(LWR)
24#define OSL_FUN OSL(FUN)
25
26#define OSM_CTL OSM(MOD_LCTL)
27#define OSM_ALT OSM(MOD_LALT)
28#define OSM_SFT OSM(MOD_LSFT)
29
30#endif
31
diff --git a/keyboards/planck/keymaps/dshields/keyboard-layout.jpg b/keyboards/planck/keymaps/dshields/keyboard-layout.jpg
new file mode 100644
index 000000000..142f82130
--- /dev/null
+++ b/keyboards/planck/keymaps/dshields/keyboard-layout.jpg
Binary files differ
diff --git a/keyboards/planck/keymaps/dshields/keymap.c b/keyboards/planck/keymaps/dshields/keymap.c
new file mode 100644
index 000000000..ed7621c77
--- /dev/null
+++ b/keyboards/planck/keymaps/dshields/keymap.c
@@ -0,0 +1,100 @@
1#include "planck.h"
2#include "backlight.h"
3#include "config.h"
4#include "action_layer.h"
5#include "eeconfig.h"
6
7extern keymap_config_t keymap_config;
8
9enum planck_layers { DEF, LWR, RSE, FUN };
10enum planck_keycodes { DYNAMIC_MACRO_RANGE = SAFE_RANGE };
11enum tap_dance_keys { TD_SCLN };
12
13#include "dynamic_macro.h"
14
15const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
16 /* Default
17 * ,-----------------------------------------------------------------------------------.
18 * | Q | W | E | R | T | Esc | Bksp | Y | U | I | O | P |
19 * |------+------+------+------+------+-------------+------+------+------+------+------|
20 * | A | S | D | F | G | Tab | Enter| H | J | K | L | ; |
21 * |------+------+------+------+------+------|------+------+------+------+------+------|
22 * | Z | X | C | V | B | Shift|DmPlay| N | M | , | . | / |
23 * |------+------+------+------+------+------+------+------+------+------+------+------|
24 * | Ctrl | Super| Alt | Fun | Lower| Space | Raise| Left | Down | Up |Right |
25 * `-----------------------------------------------------------------------------------'
26 */
27 [DEF] = {
28 {KC_Q, KC_W, KC_E, KC_R, KC_T, KC_ESC, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P},
29 {KC_A, KC_S, KC_D, KC_F, KC_G, KC_TAB, KC_ENT, KC_H, KC_J, KC_K, KC_L, TD(TD_SCLN)},
30 {KC_Z, KC_X, KC_C, KC_V, KC_B, OSM_SFT, DM_PLAY, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH},
31 {OSM_CTL, KC_LGUI, OSM_ALT, OSL_FUN, OSL_LWR, KC_SPC, KC_SPC, OSL_RSE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT}
32 },
33 /* Lower
34 * ,-----------------------------------------------------------------------------------.
35 * | ! | @ | # | $ | % | | | ^ | & | * | ( | ) |
36 * |------+------+------+------+------+-------------+------+------+------+------+------|
37 * | ~ | | | | | | | _ | + | | { | } |
38 * |------+------+------+------+------+------|------+------+------+------+------+------|
39 * | | | | | | | | | | | " | | |
40 * |------+------+------+------+------+------+------+------+------+------+------+------|
41 * | | | | | | | | Home | PgDn | PgUp | End |
42 * `-----------------------------------------------------------------------------------'
43 */
44 [LWR] = {
45 {KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN},
46 {S(KC_GRV), _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, _______, S(KC_LBRC), S(KC_RBRC)},
47 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, S(KC_QUOT), S(KC_BSLS)},
48 {_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END}
49 },
50 /* Raise
51 * ,-----------------------------------------------------------------------------------.
52 * | 1 | 2 | 3 | 4 | 5 | | | 6 | 7 | 8 | 9 | 0 |
53 * |------+------+------+------+------+-------------+------+------+------+------+------|
54 * | ` | | | | | | | - | = | | [ | ] |
55 * |------+------+------+------+------+------|------+------+------+------+------+------|
56 * | | | | | | | | | | | ' | \ |
57 * |------+------+------+------+------+------+------+------+------+------+------+------|
58 * | | | | | | | | Home | PgDn | PgUp | End |
59 * `-----------------------------------------------------------------------------------'
60 */
61 [RSE] = {
62 {KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0},
63 {KC_GRV, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, KC_LBRC, KC_RBRC},
64 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_QUOT, KC_BSLS},
65 {_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END}
66 },
67 /* Function
68 * ,-----------------------------------------------------------------------------------.
69 * | F1 | F2 | F3 | F4 | F5 | Reset|Delete| F6 | F7 | F8 | F9 | F10 |
70 * |------+------+------+------+------+-------------+------+------+------+------+------|
71 * | F11 | F12 | F13 | F14 | F15 | | | |MsWhLt|MsWhDn|MsWhUp|MsWhRt|
72 * |------+------+------+------+------+------|------+------+------+------+------+------|
73 * |BlTggl|BlStep| | | |DmStrt|DmStop| | |MsBtn1|MsBtn2|MsBtn3|
74 * |------+------+------+------+------+------+------+------+------+------+------+------|
75 * | | | | | | | |MsLeft|MsDown| MsUp |MsRght|
76 * `-----------------------------------------------------------------------------------'
77 */
78 [FUN] = {
79 {KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, RESET, KC_DEL, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10},
80 {KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R},
81 {BL_TOGG, BL_STEP, _______, _______, _______, DM_STRT, DM_STOP, _______, _______, KC_BTN1, KC_BTN2, KC_BTN3},
82 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R}
83 },
84
85};
86
87qk_tap_dance_action_t tap_dance_actions[] = {
88 [TD_SCLN] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, S(KC_SCLN)) // once for semi-colon, twice for colon
89};
90
91bool process_record_user(uint16_t keycode, keyrecord_t *record) {
92 if (!process_record_dynamic_macro(keycode, record)) {
93 return false;
94 }
95 return true;
96}
97
98void matrix_init_user(void) {
99}
100
diff --git a/keyboards/planck/keymaps/dshields/readme.md b/keyboards/planck/keymaps/dshields/readme.md
new file mode 100644
index 000000000..447eaae97
--- /dev/null
+++ b/keyboards/planck/keymaps/dshields/readme.md
@@ -0,0 +1,12 @@
1
2About
3------
4
5A simple split qwerty Planck layout that makes use of one-shot modifiers,
6one-shot layers, tap-dance keys and dynamic macros.
7
8Layout
9-------
10
11![Layout](keyboard-layout.jpg "Keyboard Layout")
12
diff --git a/keyboards/planck/keymaps/khord/config.h b/keyboards/planck/keymaps/khord/config.h
index 008f3a5c2..83dece50e 100644
--- a/keyboards/planck/keymaps/khord/config.h
+++ b/keyboards/planck/keymaps/khord/config.h
@@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
48 48
49/* number of backlight levels */ 49/* number of backlight levels */
50#define BACKLIGHT_LEVELS 3 50#define BACKLIGHT_LEVELS 3
51#define BACKLIGHT_BREATHING
51 52
52/* Set 0 if debouncing isn't needed */ 53/* Set 0 if debouncing isn't needed */
53#define DEBOUNCING_DELAY 5 54#define DEBOUNCING_DELAY 5
diff --git a/keyboards/planck/keymaps/khord/keymap.c b/keyboards/planck/keymaps/khord/keymap.c
index 8001a0986..e371e5b70 100644
--- a/keyboards/planck/keymaps/khord/keymap.c
+++ b/keyboards/planck/keymaps/khord/keymap.c
@@ -37,6 +37,14 @@ enum planck_keycodes {
37#define _______ KC_TRNS 37#define _______ KC_TRNS
38#define XXXXXXX KC_NO 38#define XXXXXXX KC_NO
39 39
40#define MACRO_BREATH_TOGGLE 21
41#define MACRO_BREATH_SPEED_INC 23
42#define MACRO_BREATH_SPEED_DEC 24
43#define MACRO_BREATH_DEFAULT 25
44#define M_BRTOG M(MACRO_BREATH_TOGGLE)
45#define M_BRINC M(MACRO_BREATH_SPEED_INC)
46#define M_BRDEC M(MACRO_BREATH_SPEED_DEC)
47#define M_BRDFT M(MACRO_BREATH_DEFAULT)
40// Tap Dance Declarations 48// Tap Dance Declarations
41enum { 49enum {
42 ESC_CAP = 0, 50 ESC_CAP = 0,
@@ -173,10 +181,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
173 * `-----------------------------------------------------------------------------------' 181 * `-----------------------------------------------------------------------------------'
174 */ 182 */
175[_ADJUST] = { 183[_ADJUST] = {
176 {_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL}, 184 {_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, M_BRDFT, KC_DEL },
177 {_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______}, 185 {_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, M_BRINC, _______},
178 {_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______}, 186 {_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, M_BRDEC, C_A_INS},
179 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, C_A_INS, C_A_DEL} 187 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, M_BRTOG, C_A_DEL}
180} 188}
181 189
182 190
@@ -210,6 +218,32 @@ void persistant_default_layer_set(uint16_t default_layer) {
210 default_layer_set(default_layer); 218 default_layer_set(default_layer);
211} 219}
212 220
221const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
222 switch(id) {
223 case MACRO_BREATH_TOGGLE:
224 if (record->event.pressed) {
225 breathing_toggle();
226 }
227 break;
228 case MACRO_BREATH_SPEED_INC:
229 if (record->event.pressed) {
230 breathing_speed_inc(1);
231 }
232 break;
233 case MACRO_BREATH_SPEED_DEC:
234 if (record->event.pressed) {
235 breathing_speed_dec(1);
236 }
237 break;
238 case MACRO_BREATH_DEFAULT:
239 if (record->event.pressed) {
240 breathing_defaults();
241 }
242 break;
243 }
244 return MACRO_NONE;
245}
246
213bool process_record_user(uint16_t keycode, keyrecord_t *record) { 247bool process_record_user(uint16_t keycode, keyrecord_t *record) {
214 switch (keycode) { 248 switch (keycode) {
215 case QWERTY: 249 case QWERTY:
diff --git a/keyboards/planck/keymaps/lae3/Makefile b/keyboards/planck/keymaps/lae3/Makefile
new file mode 100644
index 000000000..595803e32
--- /dev/null
+++ b/keyboards/planck/keymaps/lae3/Makefile
@@ -0,0 +1,23 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
6MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
7EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
8CONSOLE_ENABLE = no # Console for debug(+400)
9COMMAND_ENABLE = no # Commands for debug and configuration
10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = yes # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
17
18# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
19SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
20
21ifndef QUANTUM_DIR
22 include ../../../../Makefile
23endif
diff --git a/keyboards/planck/keymaps/lae3/config.h b/keyboards/planck/keymaps/lae3/config.h
new file mode 100644
index 000000000..a28634e69
--- /dev/null
+++ b/keyboards/planck/keymaps/lae3/config.h
@@ -0,0 +1,8 @@
1#ifndef LAE3_KEYMAP_H
2#define LAE3_KEYMAP_H
3
4#include "../../config.h"
5
6#define PREVENT_STUCK_MODIFIERS
7
8#endif
diff --git a/keyboards/planck/keymaps/lae3/keymap.c b/keyboards/planck/keymaps/lae3/keymap.c
new file mode 100644
index 000000000..4127a3ae1
--- /dev/null
+++ b/keyboards/planck/keymaps/lae3/keymap.c
@@ -0,0 +1,262 @@
1#include "planck.h"
2#include "action_layer.h"
3#ifdef AUDIO_ENABLE
4#include "audio.h"
5#endif
6#include "eeconfig.h"
7
8extern keymap_config_t keymap_config;
9
10// Each layer gets a name for readability, which is then used in the keymap matrix below.
11// The underscores don't mean anything - you can have a layer called STUFF or any other name.
12// Layer names don't all need to be of the same length, obviously, and you can also skip them
13// entirely and just use numbers.
14enum planck_layers {
15 _QWERTY,
16 _ARROW,
17 _NUMPAD,
18 _MOVEMENT,
19 _LOWER,
20 _RAISE,
21 _ADJUST
22};
23
24#define _MV _MOVEMENT
25
26enum planck_keycodes {
27 QWERTY = SAFE_RANGE,
28 ARROW,
29 NUMPAD,
30 LOWER,
31 RAISE,
32};
33
34// Fillers to make layering more clear
35#define _______ KC_TRNS
36#define XXXXXXX KC_NO
37
38#define KC_MUP KC_MS_UP
39#define KC_MDN KC_MS_DOWN
40#define KC_MLFT KC_MS_LEFT
41#define KC_MRGT KC_MS_RIGHT
42#define KC_MB1 KC_MS_BTN1
43#define KC_MB2 KC_MS_BTN2
44#define KC_MB3 KC_MS_BTN3
45#define KC_MB4 KC_MS_BTN4
46#define KC_MB5 KC_MS_BTN5
47#define KC_MWUP KC_MS_WH_UP
48#define KC_MWDN KC_MS_WH_DOWN
49
50const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
51
52 /* Qwerty
53 * ,-----------------------------------------------------------------------------------.
54 * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp |
55 * |------+------+------+------+------+------+------+------+------+------+------+------|
56 * | Tab | A | S | D | F | G | H | J | K | L | ; |Enter |
57 * |------+------+------+------+------+------+------+------+------+------+------+------|
58 * |Shift | Z | X | C | V | B | N | M | , | . | / |Shift |
59 * |------+------+------+------+------+-------------+------+------+------+------+------|
60 * | Ctrl | GUI | Alt | Move |Lower | Space |Raise | Move | Alt | GUI | Ctrl |
61 * `-----------------------------------------------------------------------------------'
62 */
63 [_QWERTY] = {
64 {KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
65 {KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT },
66 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT},
67 {KC_LCTL, KC_LGUI, KC_LALT, MO(_MV), LOWER, KC_SPC, KC_SPC, RAISE, MO(_MV), KC_RALT, KC_RGUI, KC_RCTL}
68 },
69
70 /* Arrow
71 * ,-----------------------------------------------------------------------------------.
72 * | | | | | | | | | | | | |
73 * |------+------+------+------+------+------+------+------+------+------+------+------|
74 * | | | | | | | | | | | | |
75 * |------+------+------+------+------+------+------+------+------+------+------+------|
76 * | | | | | | | | | | | Up | |
77 * |------+------+------+------+------+-------------+------+------+------+------+------|
78 * | | | | | | | | | Left | Down | Right|
79 * `-----------------------------------------------------------------------------------'
80 */
81 [_ARROW] = {
82 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
83 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
84 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______},
85 {_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT}
86 },
87
88 /* Numpad
89 * ,-----------------------------------------------------------------------------------.
90 * | | | | | | |NumLck| 7 | 8 | 9 | / | |
91 * |------+------+------+------+------+------+------+------+------+------+------+------|
92 * | | | | | | |Enter | 4 | 5 | 6 | * | |
93 * |------+------+------+------+------+------+------+------+------+------+------+------|
94 * | | | | | | | | 3 | 2 | 1 | - | |
95 * |------+------+------+------+------+-------------+------+------+------+------+------|
96 * | | | | | | | | 0 | . | + | |
97 * `-----------------------------------------------------------------------------------'
98 */
99 [_NUMPAD] = {
100 {_______, _______, _______, _______, _______, _______, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_PSLS, _______},
101 {_______, _______, _______, _______, _______, _______, KC_PENT, KC_P4, KC_P5, KC_P6, KC_PAST, _______},
102 {_______, _______, _______, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_PMNS, _______},
103 {_______, _______, _______, _______, _______, _______, _______, _______, KC_P0, KC_PDOT, KC_PPLS, _______}
104 },
105
106 /* Movement
107 * ,-----------------------------------------------------------------------------------.
108 * | |MsBut2|Ms Up |MsBut1|MsWhUp| | Home | PgDn | PgUp | End | | |
109 * |------+------+------+------+------+------+------+------+------+------+------+------|
110 * | |Ms Lft|Ms Dn |Ms Rgt|MsWhDn| | Left | Down | Up | Right| | |
111 * |------+------+------+------+------+------+------+------+------+------+------+------|
112 * | | | | | | | | | | | | |
113 * |------+------+------+------+------+-------------+------+------+------+------+------|
114 * | | | | | | | | | | | |
115 * `-----------------------------------------------------------------------------------'
116 */
117 [_MOVEMENT] = {
118 {_______, KC_MB2, KC_MUP, KC_MB1, KC_MWUP, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______},
119 {_______, KC_MLFT, KC_MDN, KC_MRGT, KC_MWDN, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______},
120 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
121 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
122 },
123
124 /* Lower
125 * ,-----------------------------------------------------------------------------------.
126 * | ` | 1 | 2 | 3 | 4 | 5 | - | = | Del | End | PgDn | |
127 * |------+------+------+------+------+------+------+------+------+------+------+------|
128 * | Caps | 6 | 7 | 8 | 9 | 0 | [ | ] | \ | ' | | |
129 * |------+------+------+------+------+------+------+------+------+------+------+------|
130 * | | F1 | F2 | F3 | F4 | | | F5 | F6 | F7 | F8 | |
131 * |------+------+------+------+------+-------------+------+------+------+------+------|
132 * | | | | | | | | | | | |
133 * `-----------------------------------------------------------------------------------'
134 */
135 [_LOWER] = {
136 {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_DEL, KC_END, KC_PGDN, _______},
137 {KC_CAPS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_LBRC, KC_RBRC, KC_BSLS, KC_QUOT, XXXXXXX, _______},
138 {_______, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, XXXXXXX, KC_F5, KC_F6, KC_F7, KC_F8, _______},
139 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
140 },
141
142 /* Raise
143 * ,-----------------------------------------------------------------------------------.
144 * | ~ | ! | @ | # | $ | % | _ | + | Ins | Home | PgUp | |
145 * |------+------+------+------+------+------+------+------+------+------+------+------|
146 * | Caps | ^ | & | * | ( | ) | { | } | | | " | | |
147 * |------+------+------+------+------+------+------+------+------+------+------+------|
148 * | | F9 | F10 | F11 | F12 | | | | | | | |
149 * |------+------+------+------+------+-------------+------+------+------+------+------|
150 * | | | | | | | | | | | |
151 * `-----------------------------------------------------------------------------------'
152 */
153 [_RAISE] = {
154 {KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_UNDS, KC_PLUS, KC_INS, KC_HOME, KC_PGUP, _______},
155 {KC_CAPS, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_LCBR, KC_RCBR, KC_PIPE, KC_DQUO, XXXXXXX, _______},
156 {_______, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______},
157 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
158 },
159
160 /* Adjust (Lower + Raise)
161 * ,-----------------------------------------------------------------------------------.
162 * |Reset | | | | | | | | | | | |
163 * |------+------+------+------+------+------+------+------+------+------+------+------|
164 * | |Bcklgt| Mute |Vol Dn|Vol Up| | |Qwerty|Arrow |Numpad| | |
165 * |------+------+------+------+------+------+------+------+------+------+------+------|
166 * | | | | | | | | | | | | |
167 * |------+------+------+------+------+-------------+------+------+------+------+------|
168 * | | | | | | | | | | | |
169 * `-----------------------------------------------------------------------------------'
170 */
171 [_ADJUST] = {
172 {RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
173 {_______, BL_STEP, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, QWERTY, ARROW, NUMPAD, _______, _______},
174 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
175 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
176 }
177
178};
179
180#ifdef AUDIO_ENABLE
181
182float tone_startup[][2] = SONG(STARTUP_SOUND);
183float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
184
185float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
186
187#endif
188
189bool process_record_user(uint16_t keycode, keyrecord_t *record)
190{
191 switch (keycode) {
192 case LOWER:
193 if (record->event.pressed) {
194 layer_on(_LOWER);
195 } else {
196 layer_off(_LOWER);
197 }
198 update_tri_layer(_LOWER, _RAISE, _ADJUST);
199 return false;
200 case RAISE:
201 if (record->event.pressed) {
202 layer_on(_RAISE);
203 } else {
204 layer_off(_RAISE);
205 }
206 update_tri_layer(_LOWER, _RAISE, _ADJUST);
207 return false;
208 case QWERTY:
209 if (record->event.pressed) {
210 layer_off(_ARROW);
211 layer_off(_NUMPAD);
212 }
213 return false;
214 case ARROW:
215 if (record->event.pressed) {
216 layer_off(_NUMPAD);
217 layer_on(_ARROW);
218 }
219 return false;
220 case NUMPAD:
221 if (record->event.pressed) {
222 layer_off(_ARROW);
223 layer_on(_NUMPAD);
224 }
225 return false;
226 }
227 return true;
228}
229
230void matrix_init_user(void)
231{
232#ifdef AUDIO_ENABLE
233 startup_user();
234#endif
235}
236
237#ifdef AUDIO_ENABLE
238
239void startup_user()
240{
241 _delay_ms(100); // gets rid of tick
242 PLAY_NOTE_ARRAY(tone_startup, false, 0);
243}
244
245void shutdown_user()
246{
247 PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
248 _delay_ms(150);
249 stop_all_notes();
250}
251
252void music_on_user(void)
253{
254 music_scale_user();
255}
256
257void music_scale_user(void)
258{
259 PLAY_NOTE_ARRAY(music_scale, false, 0);
260}
261
262#endif
diff --git a/keyboards/planck/keymaps/lae3/readme.md b/keyboards/planck/keymaps/lae3/readme.md
new file mode 100644
index 000000000..57a2f38dd
--- /dev/null
+++ b/keyboards/planck/keymaps/lae3/readme.md
@@ -0,0 +1,111 @@
1# Lae3
2_Keymap based around mode-switching for extended functionality_
3
4## Base Layout
5
6 ┌-----------------------------------------------------------------------------------┐
7 | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp |
8 |------+------+------+------+------+------+------+------+------+------+------+------|
9 | Tab | A | S | D | F | G | H | J | K | L | ; |Enter |
10 |------+------+------+------+------+------+------+------+------+------+------+------|
11 |Shift | Z | X | C | V | B | N | M | , | . | / |Shift |
12 |------+------+------+------+------+-------------+------+------+------+------+------|
13 | Ctrl | GUI | Alt | Move |Lower | Space |Raise | Move | Alt | GUI | Ctrl |
14 └-----------------------------------------------------------------------------------┘
15
16This is more similar to a standard keyboard layout than the standard planck
17layout, but I have found that this is better for programming, especially for
18editor shortcuts.
19
20## Lower Layer
21
22 ┌-----------------------------------------------------------------------------------┐
23 | ` | 1 | 2 | 3 | 4 | 5 | - | = | Del | End | PgDn | |
24 |------+------+------+------+------+------+------+------+------+------+------+------|
25 | Caps | 6 | 7 | 8 | 9 | 0 | [ | ] | \ | ' | | |
26 |------+------+------+------+------+------+------+------+------+------+------+------|
27 | | F1 | F2 | F3 | F4 | | | F5 | F6 | F7 | F8 | |
28 |------+------+------+------+------+-------------+------+------+------+------+------|
29 | | | | | | | | | | | |
30 └-----------------------------------------------------------------------------------┘
31
32All the numbers are on one hand so that they can all be easily accessed when
33playing games. The punctuation was placed in a way that is as similar as
34possible the qwerty punctuation layout on a standard keyboard.
35
36## Raise Layer
37
38 ┌-----------------------------------------------------------------------------------┐
39 | ~ | ! | @ | # | $ | % | _ | + | Ins | Home | PgUp | |
40 |------+------+------+------+------+------+------+------+------+------+------+------|
41 | Caps | ^ | & | * | ( | ) | { | } | | | " | | |
42 |------+------+------+------+------+------+------+------+------+------+------+------|
43 | | F9 | F10 | F11 | F12 | | | | | | | |
44 |------+------+------+------+------+-------------+------+------+------+------+------|
45 | | | | | | | | | | | |
46 └-----------------------------------------------------------------------------------┘
47
48This layer with the exception of the function and control keys is effectively
49the lower layer in combination with the shift key, like on the standard planck
50layout.
51
52## Movement Layer
53
54 ┌-----------------------------------------------------------------------------------┐
55 | |MsBut2|Ms Up |MsBut1|MsWhUp| | Home | PgDn | PgUp | End | | |
56 |------+------+------+------+------+------+------+------+------+------+------+------|
57 | |Ms Lft|Ms Dn |Ms Rgt|MsWhDn| | Left | Down | Up | Right| | |
58 |------+------+------+------+------+------+------+------+------+------+------+------|
59 | | | | | | | | | | | | |
60 |------+------+------+------+------+-------------+------+------+------+------+------|
61 | | | | | | | | | | | |
62 └-----------------------------------------------------------------------------------┘
63
64Layer for simplifying movement.
65
66## Meta Layer
67
68 ┌-----------------------------------------------------------------------------------┐
69 |Reset | | | | | | | | | | | |
70 |------+------+------+------+------+------+------+------+------+------+------+------|
71 | |Bcklgt| Mute |Vol Dn|Vol Up| | |Qwerty|Arrow |Numpad| | |
72 |------+------+------+------+------+------+------+------+------+------+------+------|
73 | | | | | | | | | | | | |
74 |------+------+------+------+------+-------------+------+------+------+------+------|
75 | | | | | | | | | | | |
76 └-----------------------------------------------------------------------------------┘
77
78This Layer is activated when pressing both the Lower and Raise keys. The Arrow
79and Numpad keys each activate a layer between the base layer and the Movement
80layer. The Qwerty key disables both of the layers leaving just the base layer
81active.
82
83## Arrow Layer
84
85 ┌-----------------------------------------------------------------------------------┐
86 | | | | | | | | | | | | |
87 |------+------+------+------+------+------+------+------+------+------+------+------|
88 | | | | | | | | | | | | |
89 |------+------+------+------+------+------+------+------+------+------+------+------|
90 | | | | | | | | | | | Up | |
91 |------+------+------+------+------+-------------+------+------+------+------+------|
92 | | | | | | | | | Left | Down | Right|
93 └-----------------------------------------------------------------------------------┘
94
95Replaces the bottom right of the keyboard with arrow keys for games like The
96Binding of Isaac.
97
98## Numpad Layer
99
100 ┌-----------------------------------------------------------------------------------┐
101 | | | | | | |NumLck| 7 | 8 | 9 | / | |
102 |------+------+------+------+------+------+------+------+------+------+------+------|
103 | | | | | | |Enter | 4 | 5 | 6 | * | |
104 |------+------+------+------+------+------+------+------+------+------+------+------|
105 | | | | | | | | 3 | 2 | 1 | - | |
106 |------+------+------+------+------+-------------+------+------+------+------+------|
107 | | | | | | | | 0 | . | + | |
108 └-----------------------------------------------------------------------------------┘
109
110Replaces the majority of the right side of the keyboard with a numpad because
111why not?
diff --git a/keyboards/planck/keymaps/lucas/keymap.c b/keyboards/planck/keymaps/lucas/keymap.c
index 2208780b1..491cd1d07 100644
--- a/keyboards/planck/keymaps/lucas/keymap.c
+++ b/keyboards/planck/keymaps/lucas/keymap.c
@@ -153,12 +153,12 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
153 case 1: // M(1) 153 case 1: // M(1)
154 if (record->event.pressed) { 154 if (record->event.pressed) {
155 unregister_code(KC_LSFT); 155 unregister_code(KC_LSFT);
156 register_code(DE_MORE); 156 register_code(DE_LESS);
157 } else { 157 } else {
158 unregister_code(DE_MORE); 158 unregister_code(DE_LESS);
159 } 159 }
160 break; 160 break;
161 } 161 }
162 return MACRO_NONE; 162 return MACRO_NONE;
163 163
164}; \ No newline at end of file 164};
diff --git a/keyboards/planck/keymaps/priyadi/config.h b/keyboards/planck/keymaps/priyadi/config.h
index 82e4a25c6..adc1c69aa 100644
--- a/keyboards/planck/keymaps/priyadi/config.h
+++ b/keyboards/planck/keymaps/priyadi/config.h
@@ -27,7 +27,8 @@
27 k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ 27 k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \
28 k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \ 28 k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \
29 k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \ 29 k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \
30 k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c \ 30 k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, \
31 tp1, tp2, tp3 \
31) \ 32) \
32{ \ 33{ \
33 {k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c}, \ 34 {k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c}, \
diff --git a/keyboards/planck/keymaps/vifon/keymap.c b/keyboards/planck/keymaps/vifon/keymap.c
index ee0c0ac36..ecd5c2cc4 100644
--- a/keyboards/planck/keymaps/vifon/keymap.c
+++ b/keyboards/planck/keymaps/vifon/keymap.c
@@ -107,7 +107,8 @@ const uint16_t PROGMEM fn_actions[] = {
107bool process_record_user(uint16_t keycode, keyrecord_t *record) { 107bool process_record_user(uint16_t keycode, keyrecord_t *record) {
108 static uint16_t key_timer; 108 static uint16_t key_timer;
109 109
110 if (!process_record_dynamic_macro(keycode, record)) { 110 uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
111 if (!process_record_dynamic_macro(macro_kc, record)) {
111 return false; 112 return false;
112 } 113 }
113 114