Skip to content

Commit 6ce1c91

Browse files
scottzach1ModProg
authored andcommitted
[Keymap] Add planck/scottzach1 keymap (qmk#17083)
1 parent 04e6cd5 commit 6ce1c91

File tree

3 files changed

+221
-0
lines changed

3 files changed

+221
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2022 Zac Scott (@scottzach1)
2+
// SPDX-License-Identifier: GPL-2.0
3+
4+
#pragma once
5+
6+
#ifdef AUDIO_ENABLE
7+
#define STARTUP_SONG SONG(PLANCK_SOUND)
8+
// #define STARTUP_SONG SONG(NO_SOUND)
9+
10+
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
11+
SONG(COLEMAK_SOUND), \
12+
SONG(DVORAK_SOUND) \
13+
}
14+
#endif
15+
16+
/*
17+
* MIDI options
18+
*/
19+
20+
/* enable basic MIDI features:
21+
- MIDI notes can be sent when in Music mode is on
22+
*/
23+
24+
#define MIDI_BASIC
25+
26+
/* enable advanced MIDI features:
27+
- MIDI notes can be added to the keymap
28+
- Octave shift and transpose
29+
- Virtual sustain, portamento, and modulation wheel
30+
- etc.
31+
*/
32+
//#define MIDI_ADVANCED
33+
34+
// Most tactile encoders have detents every 4 stages
35+
#define ENCODER_RESOLUTION 4
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
// Copyright 2022 Zac Scott (@scottzach1)
2+
// SPDX-License-Identifier: GPL-2.0
3+
4+
#include QMK_KEYBOARD_H
5+
6+
enum planck_layers {
7+
_COLEMAK,
8+
_LOWER,
9+
_RAISE,
10+
_FUNCTION,
11+
_DEBUG
12+
};
13+
14+
#define xxxxxxx KC_NO
15+
#define LOWER MO(_LOWER)
16+
#define RAISE MO(_RAISE)
17+
#define FUNCT MO(_FUNCTION)
18+
19+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20+
21+
/* Colemak Mod-DH
22+
* ,-----------------------------------------------------------------------------------------------------------.
23+
* | Tab | Q | W | F | P | B | J | L | U | Y | ; | ' |
24+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
25+
* | Func | A | R | S | T | G | M | N | E | I | O | Enter |
26+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
27+
* | Shift | Z | X | C | D | V | K | H | , | . | / | \ |
28+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
29+
* | Ctrl | GUI | Alt | Shift | Space | Lower | Raise | Bkspc | Shift | - | = | Ctrl |
30+
* `-----------------------------------------------------------------------------------------------------------'
31+
*/
32+
[_COLEMAK] = LAYOUT_ortho_4x12(
33+
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_QUOT,
34+
FUNCT, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_ENT,
35+
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS,
36+
KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, KC_SPC, LOWER, RAISE, KC_BSPC, KC_RSFT, KC_MINS, KC_EQL, KC_RCTL
37+
),
38+
39+
/* Lower
40+
* ,-----------------------------------------------------------------------------------------------------------.
41+
* | Tab | | { | } | | | ` | 7 | 8 | 9 | 0 | |
42+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
43+
* | Func | | ( | ) | | | * | 4 | 5 | 6 | - | Enter |
44+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
45+
* | Shift | | [ | ] | | | / | 1 | 2 | 3 | + | = |
46+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
47+
* | Ctrl | GUI | Alt | Shift | Space | Lower | Func | Bkspc | 0 | . | = | Ctrl |
48+
* `-----------------------------------------------------------------------------------------------------------'
49+
*/
50+
[_LOWER] = LAYOUT_ortho_4x12(
51+
_______, xxxxxxx, KC_LCBR, KC_RCBR, xxxxxxx, xxxxxxx, KC_GRV, KC_7, KC_8, KC_9, KC_0, _______,
52+
_______, xxxxxxx, KC_LPRN, KC_RPRN, xxxxxxx, xxxxxxx, KC_ASTR, KC_4, KC_5, KC_6, KC_MINS, _______,
53+
_______, xxxxxxx, KC_LBRC, KC_RBRC, xxxxxxx, xxxxxxx, KC_SLSH, KC_1, KC_2, KC_3, KC_PLUS, KC_EQL,
54+
_______, _______, _______, _______, _______, _______, FUNCT, _______, KC_0, KC_DOT, _______, _______
55+
),
56+
57+
/* Raise
58+
* ,-----------------------------------------------------------------------------------------------------------.
59+
* | Tab | | { | } | | | | Pg_Up | Up | Pg_Dn | | |
60+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
61+
* | Func | | ( | ) | | | Home | Left | Down | Right | Del | Ent er |
62+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
63+
* | Shift | | [ | ] | | | | End | Ins | Caps | | |
64+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
65+
* | Ctrl | GUI | Alt | Shift | Space | Func | Raise | Bkspc | | | | Ctr l |
66+
* `-----------------------------------------------------------------------------------------------------------'
67+
*/
68+
[_RAISE] = LAYOUT_ortho_4x12(
69+
_______, xxxxxxx, KC_LCBR, KC_RCBR, xxxxxxx, xxxxxxx, xxxxxxx, KC_PGUP, KC_UP, KC_PGDN, _______, _______,
70+
_______, xxxxxxx, KC_LPRN, KC_RPRN, xxxxxxx, xxxxxxx, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL , _______,
71+
_______, xxxxxxx, KC_LBRC, KC_RBRC, xxxxxxx, xxxxxxx, KC_SLSH, KC_END, KC_INS, KC_CAPS, xxxxxxx, xxxxxxx,
72+
_______, _______, _______, _______, _______, FUNCT, _______, _______, _______, _______, _______, _______
73+
),
74+
75+
/* Function
76+
* ,-----------------------------------------------------------------------------------------------------------.
77+
* | Esc | | Prev | Play | Next | | | F7 | F8 | F9 | F10 | |
78+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
79+
* | | | Vol- | Vol+ | Mute | | | F4 | F5 | F6 | F11 | |
80+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
81+
* | | | | | | | | F1 | F2 | F3 | F12 | |
82+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
83+
* | | | | | | Funct | Funct | | | | | |
84+
* `-----------------------------------------------------------------------------------------------------------'
85+
*/
86+
[_FUNCTION] = LAYOUT_ortho_4x12(
87+
KC_ESC, xxxxxxx, KC_MPRV, KC_MPLY, KC_MNXT, xxxxxxx, xxxxxxx, KC_F7, KC_F8, KC_F9, KC_F10, xxxxxxx,
88+
_______, xxxxxxx, KC_VOLD, KC_VOLU, KC_MUTE, xxxxxxx, xxxxxxx, KC_F4, KC_F5, KC_F6, KC_F11, _______,
89+
_______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC_F1, KC_F2, KC_F3, KC_F12, _______,
90+
_______, _______, _______, _______, _______, DEBUG, DEBUG, _______, _______, _______, _______, _______
91+
),
92+
93+
/* Debug
94+
* ,-----------------------------------------------------------------------------------------------------------.
95+
* | Reset | Debug | | | | | | | | | | EEP |
96+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
97+
* | | | | | | | | | | | | |
98+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
99+
* | | | | | | | | | | | | |
100+
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
101+
* | | | | | | | | | | | | |
102+
* `-----------------------------------------------------------------------------------------------------------'
103+
*/
104+
[_DEBUG] = LAYOUT_ortho_4x12(
105+
RESET, DEBUG, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, EEP_RST,
106+
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
107+
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
108+
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx
109+
)
110+
};
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
![Personal Planck Rev6](https://github.com/scottzach1/Planck/blob/master/img/img_05.jpg)
2+
3+
# Scottzach1 Planck Layout
4+
5+
Upstream: [scottzach1/planck](https://github.com/scottzach1/Planck)
6+
7+
This keyboard layout implements a personal variation of Colemak Mod-DH with M-K switched.
8+
One notable change with this layout is space + backspace in line with the homing keys.
9+
As such, Lower and Raise have been moved to occupy the middle two keys.
10+
11+
I have been using this layout happily daily now since June 2019.
12+
13+
```
14+
Colemak Mod-DH
15+
,-----------------------------------------------------------------------------------------------.
16+
| Tab | Q | W | F | P | B | J | L | U | Y | ; | ' |
17+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
18+
| Func | A | R | S | T | G | M | N | E | I | O | Enter |
19+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
20+
| Shift | Z | X | C | D | V | K | H | , | . | / | \ |
21+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
22+
| Ctrl | GUI | Alt | Shift | Space | Lower | Raise | Bkspc | Shift | - | = | Ctrl |
23+
`-----------------------------------------------------------------------------------------------'
24+
```
25+
26+
```
27+
Lower
28+
,-----------------------------------------------------------------------------------------------.
29+
| Tab | | { | } | | | ` | 7 | 8 | 9 | 0 | |
30+
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
31+
| Func | | ( | ) | | | * | 4 | 5 | 6 | - | Enter |
32+
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
33+
| Shift | | [ | ] | | | / | 1 | 2 | 3 | + | = |
34+
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
35+
| Ctrl | GUI | Alt | Shift | Space | Lower | Func | Bksp | 0 | . | = | Ctrl |
36+
`-----------------------------------------------------------------------------------------------'
37+
```
38+
39+
```
40+
Raise
41+
,-----------------------------------------------------------------------------------------------.
42+
| Tab | | { | } | | | | Pg_Up | Up | Pg_Dn | | |
43+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
44+
| Func | | ( | ) | | | Home | Left | Down | Right | Del | Enter |
45+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
46+
| Shift | | [ | ] | | | | End | Ins | Caps | | |
47+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
48+
| Ctrl | GUI | Alt | Shift | Space | Func | Raise | Bkspc | | | | Ctrl |
49+
`-----------------------------------------------------------------------------------------------'
50+
```
51+
52+
```
53+
Function
54+
,-----------------------------------------------------------------------------------------------.
55+
| Esc | | Prev | Play | Next | | | F7 | F8 | F9 | F10 | |
56+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
57+
| | | Vol- | Vol+ | Mute | | | F4 | F5 | F6 | F11 | |
58+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
59+
| | | | | | | | F1 | F2 | F3 | F12 | |
60+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
61+
| | | | | | Funct | Funct | | | | | |
62+
`-----------------------------------------------------------------------------------------------'
63+
```
64+
65+
```
66+
Debug
67+
,-----------------------------------------------------------------------------------------------.
68+
| Reset | Debug | | | | | | | | | | EEP |
69+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
70+
| | | | | | | | | | | | |
71+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
72+
| | | | | | | | | | | | |
73+
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
74+
| | | | | | | | | | | | |
75+
`-----------------------------------------------------------------------------------------------'
76+
```

0 commit comments

Comments
 (0)