aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpalleiko <ian.palleiko@gmail.com>2018-05-31 21:52:53 -0400
committerDrashna Jaelre <drashna@live.com>2018-05-31 18:52:53 -0700
commitabce980b8bbc6d1bae16513a50662a549b196c1b (patch)
tree9372860fc66d792bc2170d2911a68fa0db2f366d
parentd27855665a349f9afe5c1b457461078f85cf6ffb (diff)
downloadqmk_firmware-abce980b8bbc6d1bae16513a50662a549b196c1b.tar.gz
qmk_firmware-abce980b8bbc6d1bae16513a50662a549b196c1b.zip
Palleiko's Keymap (#3096)
* cloned default layout to palleiko * Added NAV layer, removed steno * Added WM layout & Readme * forgot comma * Specify bootloader * Fixed Mod Tap / Layer Tap bugs and updated readme * Removed Layer Tap functionality * KC_NO * Updated Readme
-rw-r--r--keyboards/planck/keymaps/palleiko/config.h42
-rw-r--r--keyboards/planck/keymaps/palleiko/keymap.c300
-rw-r--r--keyboards/planck/keymaps/palleiko/readme.md63
-rw-r--r--keyboards/planck/keymaps/palleiko/rules.mk2
4 files changed, 407 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/palleiko/config.h b/keyboards/planck/keymaps/palleiko/config.h
new file mode 100644
index 000000000..a1635f2ba
--- /dev/null
+++ b/keyboards/planck/keymaps/palleiko/config.h
@@ -0,0 +1,42 @@
1#ifndef CONFIG_USER_H
2#define CONFIG_USER_H
3
4#include "config_common.h"
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#define MUSIC_MASK (keycode != KC_NO)
17
18/*
19 * MIDI options
20 */
21
22/* Prevent use of disabled MIDI features in the keymap */
23//#define MIDI_ENABLE_STRICT 1
24
25/* enable basic MIDI features:
26 - MIDI notes can be sent when in Music mode is on
27*/
28
29#define MIDI_BASIC
30
31/* enable advanced MIDI features:
32 - MIDI notes can be added to the keymap
33 - Octave shift and transpose
34 - Virtual sustain, portamento, and modulation wheel
35 - etc.
36*/
37//#define MIDI_ADVANCED
38
39/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
40//#define MIDI_TONE_KEYCODE_OCTAVES 2
41
42#endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/palleiko/keymap.c b/keyboards/planck/keymaps/palleiko/keymap.c
new file mode 100644
index 000000000..603a6edba
--- /dev/null
+++ b/keyboards/planck/keymaps/palleiko/keymap.c
@@ -0,0 +1,300 @@
1/* Copyright 2015-2018 Jack Humbert
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 * Palleiko Layout
17 */
18
19#include "planck.h"
20#include "action_layer.h"
21
22extern keymap_config_t keymap_config;
23
24enum planck_layers {
25 _QWERTY,
26 _COLEMAK,
27 _DVORAK,
28 _LOWER,
29 _RAISE,
30 _NAV,
31 _NUM,
32 _WM,
33 _ADJUST
34};
35
36enum planck_keycodes {
37 QWERTY = SAFE_RANGE,
38 COLEMAK,
39 DVORAK,
40 LOWER,
41 RAISE,
42 NAV,
43 WM,
44 NUM
45};
46
47// i3 Binds
48#define WM_1 LALT(KC_1)
49#define WM_2 LALT(KC_2)
50#define WM_3 LALT(KC_3)
51#define WM_4 LALT(KC_4)
52#define WM_5 LALT(KC_5)
53#define WM_6 LALT(KC_6)
54#define WM_7 LALT(KC_7)
55#define WM_8 LALT(KC_8)
56#define WM_9 LALT(KC_9)
57#define WM_0 LALT(KC_0)
58
59// Transparent Key
60#define _______ KC_TRNS
61// NOP
62#define ___x___ KC_NO
63
64// MT Shift & Enter
65#define S_ENT MT(MOD_RSFT, KC_ENT)
66
67const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
68
69/* Qwerty
70 * ,-----------------------------------------------------------------------------------.
71 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
72 * |------+------+------+------+------+-------------+------+------+------+------+------|
73 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
74 * |------+------+------+------+------+------|------+------+------+------+------+------|
75 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
76 * |------+------+------+------+------+------+------+------+------+------+------+------|
77 * | Ctrl | NUM | NAV | Alt |Lower | Space |Raise | NAV | GUI | NUM | WM |
78 * `-----------------------------------------------------------------------------------'
79 */
80[_QWERTY] = {
81 {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
82 {KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
83 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, S_ENT },
84 {KC_LCTL, NUM, NAV, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, NAV, KC_RGUI, NUM, WM}
85},
86
87/* Colemak
88 * ,-----------------------------------------------------------------------------------.
89 * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
90 * |------+------+------+------+------+-------------+------+------+------+------+------|
91 * | Esc | A | R | S | T | D | H | N | E | I | O | " |
92 * |------+------+------+------+------+------|------+------+------+------+------+------|
93 * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
94 * |------+------+------+------+------+------+------+------+------+------+------+------|
95 * | Ctrl | NUM | NAV | Alt |Lower | Space |Raise | NAV | GUI | NUM | WM |
96 * `-----------------------------------------------------------------------------------'
97 */
98[_COLEMAK] = {
99 {KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC},
100 {KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT},
101 {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, S_ENT },
102 {KC_LCTL, NUM, NAV, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, NAV, KC_RGUI, NUM, WM}
103},
104
105/* Dvorak
106 * ,-----------------------------------------------------------------------------------.
107 * | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp |
108 * |------+------+------+------+------+-------------+------+------+------+------+------|
109 * | Esc | A | O | E | U | I | D | H | T | N | S | / |
110 * |------+------+------+------+------+------|------+------+------+------+------+------|
111 * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
112 * |------+------+------+------+------+------+------+------+------+------+------+------|
113 * | Ctrl | NUM | NAV | Alt |Lower | Space |Raise | NAV | GUI | NUM | WM |
114 * `----------------------------------------------------------------------------------'
115 */
116[_DVORAK] = {
117 {KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC},
118 {KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH},
119 {KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT },
120 {KC_LCTL, NUM, NAV, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, NAV, KC_RGUI, NUM, WM}
121},
122
123/* Lower
124 * ,-----------------------------------------------------------------------------------.
125 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
126 * |------+------+------+------+------+-------------+------+------+------+------+------|
127 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
128 * |------+------+------+------+------+------|------+------+------+------+------+------|
129 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
130 * |------+------+------+------+------+------+------+------+------+------+------+------|
131 * | | | | | | | | Next | Vol- | Vol+ | Play |
132 * `-----------------------------------------------------------------------------------'
133 */
134[_LOWER] = {
135 {KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC},
136 {KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE},
137 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______},
138 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
139},
140
141/* Raise
142 * ,-----------------------------------------------------------------------------------.
143 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
144 * |------+------+------+------+------+-------------+------+------+------+------+------|
145 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
146 * |------+------+------+------+------+------|------+------+------+------+------+------|
147 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
148 * |------+------+------+------+------+------+------+------+------+------+------+------|
149 * | | | | | | | | Next | Vol- | Vol+ | Play |
150 * `-----------------------------------------------------------------------------------'
151 */
152[_RAISE] = {
153 {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC},
154 {KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS},
155 {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______},
156 {_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
157},
158
159/* Hex Numpad
160 * ,-----------------------------------------------------------------------------------.
161 * | | | | { | } | A | B | 7 | 8 | 9 | | |
162 * |------+------+------+------+------+-------------+------+------+------+------+------|
163 * | NUM | | | ( | ) | C | D | 4 | 5 | 6 | | |
164 * |------+------+------+------+------+------|------+------+------+------+------+------|
165 * | | | | [ | ] | E | F | 1 | 2 | 3 | | |
166 * |------+------+------+------+------+------+------+------+------+------+------+------|
167 * | | | | | | | | 0 | | | |
168 * `-----------------------------------------------------------------------------------'
169 */
170[_NUM] = {
171 {_______, ___x___, ___x___, KC_LCBR, KC_RCBR, KC_A, KC_B, KC_7, KC_8, KC_9, ___x___, _______},
172 {_______, ___x___, ___x___, KC_LPRN, KC_RPRN, KC_C, KC_D, KC_4, KC_5, KC_6, ___x___, _______},
173 {_______, ___x___, ___x___, KC_LBRC, KC_RBRC, KC_E, KC_F, KC_1, KC_2, KC_3, ___x___, _______},
174 {_______, _______, _______, _______, _______, _______, _______, _______, KC_0, _______, _______, _______}
175},
176
177/* WM (i3 window binds)
178 * ,-----------------------------------------------------------------------------------.
179 * | | WM1 | WM2 | WM3 | WM4 | WM5 | WM6 | WM7 | WM8 | WM9 | WM0 | |
180 * |------+------+------+------+------+-------------+------+------+------+------+------|
181 * | | | | | | | WM6 | WM5 | WM4 | | |
182 * |------+------+------+------+------+------|------+------+------+------+------+------|
183 * | | | | | | | WM1 | WM2 | WM3 | | |
184 * |------+------+------+------+------+------+------+------+------+------+------+------|
185 * | | | | | | | | WM0 | | | |
186 * `-----------------------------------------------------------------------------------'
187 */
188[_WM] = {
189 {_______, WM_1, WM_2, WM_3, WM_4, WM_5, WM_6, WM_7, WM_8, WM_9, WM_0, _______},
190 {_______, _______, _______, _______, _______, _______, _______, WM_4, WM_5, WM_6, _______, _______},
191 {_______, _______, _______, _______, _______, _______, _______, WM_1, WM_2 , WM_3, _______, _______},
192 {_______, _______, _______, _______, _______, _______, _______, _______, WM_0, _______, _______, _______}
193},
194
195/* Navigation Layer (Vim-like arrow binds & i3 binds)
196 * ,-----------------------------------------------------------------------------------.
197 * | | | | | | | | | | | |
198 * |------+------+------+------+------+-------------+------+------+------+------+------|
199 * | | | | | | LEFT | DOWN | UP | RIGHT| NAV | |
200 * |------+------+------+------+------+------|------+------+------+------+------+------|
201 * | | | | | | | | | | | |
202 * |------+------+------+------+------+------+------+------+------+------+------+------|
203 * | | | | | | | | | | | |
204 * `-----------------------------------------------------------------------------------'
205 */
206[_NAV] = {
207 {___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___},
208 {___x___, ___x___, ___x___, ___x___, ___x___, ___x___, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, ___x___, ___x___},
209 {_______, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___},
210 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
211},
212
213/* Adjust (Lower + Raise)
214 * ,-----------------------------------------------------------------------------------.
215 * | | | | | | | | | | | | Del |
216 * |------+------+------+------+------+-------------+------+------+------+------+------|
217 * | | | | | |AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
218 * |------+------+------+------+------+------|------+------+------+------+------+------|
219 * | | | |Mus on|Musoff|MIDIon|MIDIof| | | | | |
220 * |------+------+------+------+------+------+------+------+------+------+------+------|
221 * | Reset| Debug| | | | | | | | | |
222 * `-----------------------------------------------------------------------------------'
223 */
224[_ADJUST] = {
225 {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL },
226 {_______, _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______},
227 {_______, _______, _______, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______},
228 {RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
229}
230
231};
232
233bool process_record_user(uint16_t keycode, keyrecord_t *record) {
234 switch (keycode) {
235 case QWERTY:
236 if (record->event.pressed) {
237 print("mode just switched to qwerty and this is a huge string\n");
238 set_single_persistent_default_layer(_QWERTY);
239 }
240 return false;
241 break;
242 case COLEMAK:
243 if (record->event.pressed) {
244 set_single_persistent_default_layer(_COLEMAK);
245 }
246 return false;
247 break;
248 case DVORAK:
249 if (record->event.pressed) {
250 set_single_persistent_default_layer(_DVORAK);
251 }
252 return false;
253 break;
254 case LOWER:
255 if (record->event.pressed) {
256 layer_on(_LOWER);
257 update_tri_layer(_LOWER, _RAISE, _ADJUST);
258 } else {
259 layer_off(_LOWER);
260 update_tri_layer(_LOWER, _RAISE, _ADJUST);
261 }
262 return false;
263 break;
264 case RAISE:
265 if (record->event.pressed) {
266 layer_on(_RAISE);
267 update_tri_layer(_LOWER, _RAISE, _ADJUST);
268 } else {
269 layer_off(_RAISE);
270 update_tri_layer(_LOWER, _RAISE, _ADJUST);
271 }
272 return false;
273 break;
274 case NUM:
275 if (record->event.pressed) {
276 layer_on(_NUM);
277 } else {
278 layer_off(_NUM);
279 }
280 return false;
281 break;
282 case NAV:
283 if (record->event.pressed) {
284 layer_on(_NAV);
285 } else {
286 layer_off(_NAV);
287 }
288 return false;
289 break;
290 case WM:
291 if (record->event.pressed) {
292 layer_on(_WM);
293 } else {
294 layer_off(_WM);
295 }
296 return false;
297 break;
298 }
299 return true;
300}
diff --git a/keyboards/planck/keymaps/palleiko/readme.md b/keyboards/planck/keymaps/palleiko/readme.md
new file mode 100644
index 000000000..d8c70a652
--- /dev/null
+++ b/keyboards/planck/keymaps/palleiko/readme.md
@@ -0,0 +1,63 @@
1# Palleiko's Layout
2---
3
4This layout is mostly stock with a increased functionality for my usage.
5
6Changes over stock keymap:
71. Altered R1
81. Home row navigation layer
91. Hexadecimal numpad layer
101. Window manager layer for my i3 setup
11
12All-in-all, anyone used to the standard map would have no problem using this.
13
14### QWERTY Keymap & Addded Layers
15##### Qwerty
16```
17Hold Enter for Right Shift
18,-----------------------------------------------------------------------------------.
19| Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
20|------+------+------+------+------+-------------+------+------+------+------+------|
21| Esc | A | S | D | F | G | H | J | K | L | ; | " |
22|------+------+------+------+------+------|------+------+------+------+------+------|
23| Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
24|------+------+------+------+------+------+------+------+------+------+------+------|
25| Ctrl | NUM | NAV | Alt |Lower | Space |Raise | NAV | GUI | NUM | WM |
26`-----------------------------------------------------------------------------------'
27```
28##### Hex Numpad
29```
30,-----------------------------------------------------------------------------------.
31| | | | { | } | A | B | 7 | 8 | 9 | | |
32|------+------+------+------+------+-------------+------+------+------+------+------|
33| _NUM | | | ( | ) | C | D | 4 | 5 | 6 | | |
34|------+------+------+------+------+------|------+------+------+------+------+------|
35| | | | [ | ] | E | F | 1 | 2 | 3 | | |
36|------+------+------+------+------+------+------+------+------+------+------+------|
37| | | | | | | | 0 | | | |
38`-----------------------------------------------------------------------------------'
39```
40##### WM (i3 window binds)
41```
42,-----------------------------------------------------------------------------------.
43| | WM1 | WM2 | WM3 | WM4 | WM5 | WM6 | WM7 | WM8 | WM9 | WM0 | |
44|------+------+------+------+------+-------------+------+------+------+------+------|
45| | | | | | | WM6 | WM5 | WM4 | | |
46|------+------+------+------+------+------|------+------+------+------+------+------|
47| | | | | | | WM1 | WM2 | WM3 | | |
48|------+------+------+------+------+------+------+------+------+------+------+------|
49| | | | | | | | WM0 | | | _WM |
50`-----------------------------------------------------------------------------------'
51```
52##### Navigation Layer (Vim-like arrow binds & i3 binds)
53```
54,-----------------------------------------------------------------------------------.
55| | | | | | | | | | | | |
56|------+------+------+------+------+-------------+------+------+------+------+------|
57| | | | | | | LEFT | DOWN | UP | RIGHT| | |
58|------+------+------+------+------+------|------+------+------+------+------+------|
59| | | | | | | | | | | | |
60|------+------+------+------+------+------+------+------+------+------+------+------|
61| | _NAV | | | | | | | | _NAV | |
62`-----------------------------------------------------------------------------------'
63```
diff --git a/keyboards/planck/keymaps/palleiko/rules.mk b/keyboards/planck/keymaps/palleiko/rules.mk
new file mode 100644
index 000000000..d5ff6cd3b
--- /dev/null
+++ b/keyboards/planck/keymaps/palleiko/rules.mk
@@ -0,0 +1,2 @@
1# Atmel ATMEGA23U4 Bootloader
2BOOTLOADER = atmel-dfu