aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/planck/keymaps/kanbara/config.h31
-rw-r--r--keyboards/planck/keymaps/kanbara/keymap.c199
-rw-r--r--keyboards/planck/keymaps/kanbara/readme.md118
-rw-r--r--keyboards/planck/keymaps/kanbara/rules.mk9
4 files changed, 357 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/kanbara/config.h b/keyboards/planck/keymaps/kanbara/config.h
new file mode 100644
index 000000000..b701b9b40
--- /dev/null
+++ b/keyboards/planck/keymaps/kanbara/config.h
@@ -0,0 +1,31 @@
1/* Copyright 2021 Jay Morrow
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
17#pragma once
18
19#ifdef AUDIO_ENABLE
20 #ifdef TEMPO_DEFAULT
21 #undef TEMPO_DEFAULT
22 #define TEMPO_DEFAULT 80
23 #endif
24
25 #define STARTUP_SONG SONG(MAJOR_SOUND)
26
27 #define DEFAULT_LAYER_SONGS { SONG(COLEMAK_SOUND), \
28 SONG(DVORAK_SOUND), \
29 SONG(WORKMAN_SOUND) \
30 }
31#endif
diff --git a/keyboards/planck/keymaps/kanbara/keymap.c b/keyboards/planck/keymaps/kanbara/keymap.c
new file mode 100644
index 000000000..711411f65
--- /dev/null
+++ b/keyboards/planck/keymaps/kanbara/keymap.c
@@ -0,0 +1,199 @@
1/* Copyright 2021 Jay Morrow
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
17#include QMK_KEYBOARD_H
18
19enum planck_layers {
20 _QWERTY,
21 _COLEMAK,
22 _LEAGUE,
23 _LOWER,
24 _RAISE,
25 _ADJUST,
26 _LRAISE,
27};
28
29enum planck_keycodes {
30 QWERTY = SAFE_RANGE,
31 COLEMAK,
32 LEAGUE,
33};
34
35#define LOWER MO(_LOWER)
36#define RAISE MO(_RAISE)
37#define ADJUST MO(_ADJUST)
38#define LRAISE MO(_LRAISE)
39
40#define KC_LQ LCTL(KC_Q)
41#define KC_LW LCTL(KC_W)
42#define KC_LE LCTL(KC_E)
43#define KC_LR LCTL(KC_R)
44
45const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
46
47/* Qwerty
48 * ,-----------------------------------------------------------------------------------.
49 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
50 * |------+------+------+------+------+------+------+------+------+------+------+------|
51 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
52 * |------+------+------+------+------+------+------+------+------+------+------+------|
53 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
54 * |------+------+------+------+------+------+------+------+------+------+------+------|
55 * | Adjst| Ctrl | Alt | GUI | SPC | Lower| Raise| Enter| Left | Down | Up |Right |
56 * `-----------------------------------------------------------------------------------'
57 */
58[_QWERTY] = LAYOUT_planck_grid(
59 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
60 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
61 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
62 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LOWER, RAISE, KC_ENT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
63),
64
65/* Colemak
66 * ,-----------------------------------------------------------------------------------.
67 * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
68 * |------+------+------+------+------+------+------+------+------+------+------+------|
69 * | Esc | A | R | S | T | D | H | N | E | I | O | " |
70 * |------+------+------+------+------+------+------+------+------+------+------+------|
71 * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
72 * |------+------+------+------+------+------+------+------+------+------+------+------|
73 * | Adjst| Ctrl | Alt | GUI | SPC | Lower| Raise| Enter| Left | Down | Up |Right |
74 * `-----------------------------------------------------------------------------------'
75 */
76[_COLEMAK] = LAYOUT_planck_grid(
77 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
78 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
79 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
80 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LOWER, RAISE, KC_ENT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
81),
82
83/* League
84 * ,-----------------------------------------------------------------------------------.
85 * | Tab | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | | | Bksp |
86 * |------+------+------+------+------+------+------+------+------+------+------+------|
87 * | Esc | Q | W | E | R | G | | | | | | |
88 * |------+------+------+------+------+------+------+------+------+------+------+------|
89 * | P | B | S | D | F | | | | | | | |
90 * |------+------+------+------+------+------+------+------+------+------+------+------|
91 * |Adjust| | | | | Spc | Raise| | Ent | | | |
92 * `-----------------------------------------------------------------------------------'
93 */
94[_LEAGUE] = LAYOUT_planck_grid(
95 KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC,
96 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_G, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
97 KC_P, KC_B, KC_S, KC_D, KC_F, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
98 ADJUST, XXXXXXX, XXXXXXX, XXXXXXX, KC_SPC, LRAISE, XXXXXXX, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
99),
100
101/* Lower
102 * ,-----------------------------------------------------------------------------------.
103 * | ` | | _ | + | \ | { | } | | 7 | 8 | 9 | / |
104 * |------+------+------+------+------+------+------+------+------+------+------+------|
105 * | ~ | | _ | = | | | [ | ] | | 4 | 5 | 6 | * |
106 * |------+------+------+------+------+------+------+------+------+------+------+------|
107 * | | | | | | ( | ) | | 1 | 2 | 3 | - |
108 * |------+------+------+------+------+------+------+------+------+------+------+------|
109 * | | | | | | | | | 0 | , | . | + |
110 * `-----------------------------------------------------------------------------------'
111 */
112[_LOWER] = LAYOUT_planck_grid(
113 KC_GRV, XXXXXXX, KC_MINS, KC_PLUS, KC_BSLS, KC_LCBR, KC_RCBR, XXXXXXX, KC_7, KC_8, KC_9, KC_SLSH,
114 KC_TILD, XXXXXXX, KC_UNDS, KC_EQL, KC_PIPE, KC_LBRC, KC_RBRC, XXXXXXX, KC_4, KC_5, KC_6, KC_ASTR,
115 _______, _______, _______, _______, _______, KC_LPRN, KC_RPRN, XXXXXXX, KC_1, KC_2, KC_3, KC_MINS,
116 _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_COMM, KC_DOT, KC_PLUS
117),
118
119/* Raise
120 * ,-----------------------------------------------------------------------------------.
121 * | ~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Home |
122 * |------+------+------+------+------+------+------+------+------+------+------+------|
123 * | Del | ! | @ | # | $ | % | ^ | & | * | | | PgUp |
124 * |------+------+------+------+------+------+------+------+------+------+------+------|
125 * | | | | | Vol- | BR- | BR+ | Vol+ | | | | PgDn |
126 * |------+------+------+------+------+------+------+------+------+------+------+------|
127 * | | | | | | | | | | | | End |
128 * `-----------------------------------------------------------------------------------'
129 */
130[_RAISE] = LAYOUT_planck_grid(
131 KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_HOME,
132 KC_DEL, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, _______, KC_PGUP,
133 _______, _______, _______, _______, KC_VOLD, KC_BRMD, KC_BRMU, KC_VOLU, _______, _______, _______, KC_PGDN,
134 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END
135),
136
137/* Adjust
138 * ,-----------------------------------------------------------------------------------.
139 * |Reset |Debug | | | | | | | | | |Qwerty|
140 * |------+------+------+------+------+------+------+------+------+------+------+------|
141 * | | | | | | | | | | | |Colmk |
142 * |------+------+------+------+------+------+------+------+------+------+------+------|
143 * | | | | | | | | | | | |League|
144 * |------+------+------+------+------+------+------+------+------+------+------+------|
145 * | | | | | | | | | | | | |
146 * `-----------------------------------------------------------------------------------'
147 */
148[_ADJUST] = LAYOUT_planck_grid(
149 RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, _______, QWERTY,
150 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, COLEMAK,
151 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, LEAGUE,
152 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
153),
154
155/* League Raise
156 * ,-----------------------------------------------------------------------------------.
157 * | | F2 | F3 | F4 | F5 | | | | | | | |
158 * |------+------+------+------+------+------+------+------+------+------+------+------|
159 * | |Ctrl-Q|Ctrl-W|Ctrl-E|Ctrl-R| | | | | | | |
160 * |------+------+------+------+------+------+------+------+------+------+------+------|
161 * | | | | | | | | | | | | |
162 * |------+------+------+------+------+------+------+------+------+------+------+------|
163 * | | | | | | | | | | | | |
164 * `-----------------------------------------------------------------------------------'
165 */
166[_LRAISE] = LAYOUT_planck_grid(
167 _______, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, _______, _______, _______, _______,
168 _______, KC_LQ, KC_LW, KC_LE, KC_LR, _______, _______, _______, _______, _______, _______, _______,
169 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
170 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
171),
172
173
174};
175
176// set the default layer in ROM so that we preserve state across power transitions
177bool process_record_user(uint16_t keycode, keyrecord_t *record) {
178 switch (keycode) {
179 case QWERTY:
180 if (record->event.pressed) {
181 set_single_persistent_default_layer(_QWERTY);
182 }
183 return false;
184 break;
185 case COLEMAK:
186 if (record->event.pressed) {
187 set_single_persistent_default_layer(_COLEMAK);
188 }
189 return false;
190 break;
191 case LEAGUE:
192 if (record->event.pressed) {
193 set_single_persistent_default_layer(_LEAGUE);
194 }
195 return false;
196 break;
197 }
198 return true;
199}
diff --git a/keyboards/planck/keymaps/kanbara/readme.md b/keyboards/planck/keymaps/kanbara/readme.md
new file mode 100644
index 000000000..de32a84d2
--- /dev/null
+++ b/keyboards/planck/keymaps/kanbara/readme.md
@@ -0,0 +1,118 @@
1kanbara's layout
2=======================
3This layout contains a Colemak and Qwerty mode (for easier pair programming with colleagues)
4as well as a mode specifically to play League of Legends, as the normal mode does not provide
5for accessible enough numbers and function keys
6
7
8## Base Layers (Qwerty/Colemak/League)
9After lots of tweaking, I've found that putting brackets in the middle is easier for
10programming, and having a separate numpad input is quite handy.
11
12- Contains split `space` and `enter`
13- Designed for macOS
14- Keeps the `Tab`/`Esc` swap which I quite like
15- Note the removal of evil caps lock
16
17### Qwerty
18```
19,-----------------------------------------------------------------------------------.
20| Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
21|------+------+------+------+------+------+------+------+------+------+------+------|
22| Esc | A | S | D | F | G | H | J | K | L | ; | " |
23|------+------+------+------+------+------+------+------+------+------+------+------|
24| Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
25|------+------+------+------+------+------+------+------+------+------+------+------|
26| Adjst| Ctrl | Alt | GUI | SPC | Lower| Raise| Enter| Left | Down | Up |Right |
27`-----------------------------------------------------------------------------------'
28```
29
30### Colemak
31```
32,-----------------------------------------------------------------------------------.
33| Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
34|------+------+------+------+------+------+------+------+------+------+------+------|
35| Esc | A | R | S | T | D | H | N | E | I | O | " |
36|------+------+------+------+------+------+------+------+------+------+------+------|
37| Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
38|------+------+------+------+------+------+------+------+------+------+------+------|
39| Adjst| Ctrl | Alt | GUI | SPC | Lower| Raise| Enter| Left | Down | Up |Right |
40`-----------------------------------------------------------------------------------'
41```
42
43### League
44
45- Has it's own raise just for F-keys and Ctrl+{Q,W,E,R} as a hold toggle
46- Just the base keys needed for the game + the adjust and backspace
47
48```
49,-----------------------------------------------------------------------------------.
50| Tab | 1 | 2 | 3 | 4 | 5 | 6 | 7 | | | | Bksp |
51|------+------+------+------+------+------+------+------+------+------+------+------|
52| Esc | Q | W | E | R | G | | | | | | |
53|------+------+------+------+------+------+------+------+------+------+------+------|
54| P | B | S | D | F | | | | | | | |
55|------+------+------+------+------+------+------+------+------+------+------+------|
56|Adjust| | | | | Spc | Raise| | Ent | | | |
57`-----------------------------------------------------------------------------------'
58```
59
60#### Raise
61```
62,-----------------------------------------------------------------------------------.
63| | F2 | F3 | F4 | F5 | | | | | | | |
64|------+------+------+------+------+------+------+------+------+------+------+------|
65| |Ctrl-Q|Ctrl-W|Ctrl-E|Ctrl-R| | | | | | | |
66|------+------+------+------+------+------+------+------+------+------+------+------|
67| | | | | | | | | | | | |
68|------+------+------+------+------+------+------+------+------+------+------+------|
69| | | | | | | | | | | | |
70`-----------------------------------------------------------------------------------'
71```
72
73## Lower Layer (Programming symbols + numpad)
74I've put a numpad on the right side, and brackets in the middle. I found that putting
75the shifted equivalents of `-`, `+`, `\` and `~` are quite convenient to type with one hand
76
77```
78,-----------------------------------------------------------------------------------.
79| ` | | _ | + | \ | { | } | | 7 | 8 | 9 | / |
80|------+------+------+------+------+------+------+------+------+------+------+------|
81| ~ | | _ | = | | | [ | ] | | 4 | 5 | 6 | * |
82|------+------+------+------+------+------+------+------+------+------+------+------|
83| | | | | | ( | ) | | 1 | 2 | 3 | - |
84|------+------+------+------+------+------+------+------+------+------+------+------|
85| | | | | | | | | 0 | , | . | + |
86`-----------------------------------------------------------------------------------'
87```
88
89## Raise Layer (Function keys + shifted numbers)
90Here are the Function keys, as well as shifted 1-9 in order, and some nav and OS keys
91
92```
93,-----------------------------------------------------------------------------------.
94| ~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Home |
95|------+------+------+------+------+------+------+------+------+------+------+------|
96| Del | ! | @ | # | $ | % | ^ | & | * | | | PgUp |
97|------+------+------+------+------+------+------+------+------+------+------+------|
98| | | | | Vol- | BR- | BR+ | Vol+ | | | | PgDn |
99|------+------+------+------+------+------+------+------+------+------+------+------|
100| | | | | | | | | | | | End |
101`-----------------------------------------------------------------------------------'
102```
103
104## Adjust Layer
105Contains reset, debug and the layer on the right which are set in EEPROM across power
106transitions
107
108```
109,-----------------------------------------------------------------------------------.
110|Reset |Debug | | | | | | | | | |Qwerty|
111|------+------+------+------+------+------+------+------+------+------+------+------|
112| | | | | | | | | | | |Colmk |
113|------+------+------+------+------+------+------+------+------+------+------+------|
114| | | | | | | | | | | |League|
115|------+------+------+------+------+------+------+------+------+------+------+------|
116| | | | | | | | | | | | |
117`-----------------------------------------------------------------------------------'
118```
diff --git a/keyboards/planck/keymaps/kanbara/rules.mk b/keyboards/planck/keymaps/kanbara/rules.mk
new file mode 100644
index 000000000..4e1e30097
--- /dev/null
+++ b/keyboards/planck/keymaps/kanbara/rules.mk
@@ -0,0 +1,9 @@
1BOOTMAGIC_ENABLE = no
2MOUSEKEY_ENABLE = no
3EXTRAKEY_ENABLE = yes
4CONSOLE_ENABLE = no
5COMMAND_ENABLE = yes
6NKRO_ENABLE = yes
7BACKLIGHT_ENABLE = no
8AUDIO_ENABLE = yes
9RGBLIGHT_ENABLE = no