aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Gonzalez <taylor@taylorgonzalez.me>2018-07-20 11:07:54 -0500
committerDrashna Jaelre <drashna@live.com>2018-07-20 09:07:54 -0700
commit0537a59920d912a819e78eb052fbbc856f5ed6ac (patch)
tree780b2a1c48f9f17d657625755430beb5d6d761af
parentd21b287e7d08484c95f0df2e34213d237a62806e (diff)
downloadqmk_firmware-0537a59920d912a819e78eb052fbbc856f5ed6ac.tar.gz
qmk_firmware-0537a59920d912a819e78eb052fbbc856f5ed6ac.zip
Keymap: Added a keymap for the planck light (#3434)
* Moved F row to raise * Moved mouse keys over one space and removed unneccessary code * Moved delete on lower * Added CTRL functions * Added Print Screen * Added README.md file * Updated CTRL * Updated readme to current CTRL * Minor Changes * Updated mouse speeds * Unknown changes * Updated README and keymaps * Removed caps from number row and put it in special * Moved around equals sign again * Updated mouse key speed * Pull Request Updates
-rw-r--r--keyboards/planck/keymaps/pickle_jr/README.md102
-rw-r--r--keyboards/planck/keymaps/pickle_jr/config.h35
-rw-r--r--keyboards/planck/keymaps/pickle_jr/keymap.c196
-rw-r--r--keyboards/planck/keymaps/pickle_jr/rules.mk18
4 files changed, 351 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/pickle_jr/README.md b/keyboards/planck/keymaps/pickle_jr/README.md
new file mode 100644
index 000000000..64e9c23c1
--- /dev/null
+++ b/keyboards/planck/keymaps/pickle_jr/README.md
@@ -0,0 +1,102 @@
1Pickle\_Jr's Layout
2===================
3
4Thanks for checking out my layout! This is the layout I have on my planck.
5
6Main
7------
8```
9 ,---------------------------------------------------------------------------------------------------.
10 | Tab/CALC | Q | W | E | R | T | Y | U | I | O | P | "/CALC |
11 |----------+----------+------+------+------+-------------+------+------+-------+----------+---------|
12 | Esc | A | S | D | F | G | H | J | K | L | ;/Nav | Enter |
13 |----------+----------+------+------+------+------|------+------+------+-------+----------+---------|
14 | (/SFT | Z | X | C | V | B | N | M | , | . | / | )/SFT |
15 |----------+----------+------+------+------+------+------+------+------+-------+----------+---------|
16 | [/SPC | CTRL |PrintS| GUI | Bksp |Lower |Raise | SPC | ALT |VIMSAVE| CTRL | ]/SPC |
17 `---------------------------------------------------------------------------------------------------'
18```
19
20Lower
21-----
22```
23 ,-----------------------------------------------------------------------------------.
24 | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
25 |------+------+------+------+------+-------------+------+------+------+------+------|
26 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | |
27 |------+------+------+------+------+------|------+------+------+------+------+------|
28 | | | | | | | | | | | | |
29 |------+------+------+------+------+------+------+------+------+------+------+------|
30 | | | | | | | | DEL | | | | |
31 `-----------------------------------------------------------------------------------'
32```
33
34Raise
35-----
36```
37 ,-----------------------------------------------------------------------------------.
38 | | | | | | | | | | | | |
39 |------+------+------+------+------+-------------+------+------+------+------+------|
40 | ! | @ | # | $ | % | ^ | & | * | - | = | + | |
41 |------+------+------+------+------+------|------+------+------+------+------+------|
42 | | | ~ | ` | CTRL | | | | | _ | | | |
43 |------+------+------+------+------+------+------+------+------+------+------+------|
44 | | | | | | | | | | | |
45 `-----------------------------------------------------------------------------------'
46```
47
48Special (SPC on main)
49-------
50```
51 ,------------------------------------------------------------------------------------.
52 | | M2 | MUP | M1 | WUP | | CAPS | | | | | |
53 |------+------+------+------+------+--------------+------+------+------+------+------|
54 | |MLEFT |MDOWN |MRIGHT|WDOWN | | | | | | | |
55 |------+------+------+------+------+------|-------+------+------+------+------+------|
56 | |WLEFT | M3 |WRIGHT| | |CTLALTD| | | | | |
57 |------+------+------+------+------+------+-------+------+------+------+------+------|
58 | | PREV | PLAY | NEXT | | | LOCK | | MUTE | VOL- | VOL+ | |
59 `------------------------------------------------------------------------------------'
60```
61
62Calc
63----
64```
65 ,-----------------------------------------------------------------------------------.
66 | | F7 | F8 | F9 | | | * | 7 | 8 | 9 | / | |
67 |------+------+------+------+------+-------------+------+------+------+------+------|
68 | | F4 | F5 | F6 | | | + | 4 | 5 | 6 | - | \ |
69 |------+------+------+------+------+------|------+------+------+------+------+------|
70 | | F1 | F2 | F3 | | | | 1 | 2 | 3 | = | |
71 |------+------+------+------+------+------+------+------+------+------+------+------|
72 | | | F11 | F12 | | DEL | Bksp | 0 | | | | RET |
73 `-----------------------------------------------------------------------------------'
74```
75
76Nav
77---
78```
79 ,-----------------------------------------------------------------------------------.
80 | | | | | | | | | | | | |
81 |------+------+------+------+------+------+------+------+------+------+------+------|
82 | | | HOME | PGUP | PGDN | END | LEFT | DOWN | UP |RIGHT | | |
83 |------+------+------+------+------+------+------+------+------+------+------+------|
84 | | | | | | | | | | | | |
85 |------+------+------+------+------+------+------+------+------+------+------+------|
86 | | | | | | | | | | | | |
87 `-----------------------------------------------------------------------------------'
88```
89
90Adjust (Lower + Raise)
91----------------------
92```
93 ,-------------------------------------------------------------------------------------------.
94 | | Reset| |RGB_TOG|RGB_MOD|RGB_HUI|RGB_HUD|RGB_SAI|RGB_SAD|RGB_VAI|RGB_VAD| Del |
95 |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
96 | | |MU_MOD|Aud on |Audoff |AGnorm |AGswap | | | | | |
97 |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
98 | |Voice-|Voice+|Mus on |Musoff |MIDIon |MIDIof |TERMon |TERMof | | | |
99 |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
100 | | | | | | | | | | | |
101 `-------------------------------------------------------------------------------------------'
102```
diff --git a/keyboards/planck/keymaps/pickle_jr/config.h b/keyboards/planck/keymaps/pickle_jr/config.h
new file mode 100644
index 000000000..52e736088
--- /dev/null
+++ b/keyboards/planck/keymaps/pickle_jr/config.h
@@ -0,0 +1,35 @@
1#pragma once
2
3#ifdef AUDIO_ENABLE
4 #define STARTUP_SONG SONG(PLANCK_SOUND)
5#endif
6
7#define MOUSEKEY_DELAY 0
8#define MOUSEKEY_INTERVAL 16
9#define MOUSEKEY_MAX_SPEED 7
10#define MOUSEKEY_TIME_TO_MAX 60
11#define MOUSEKEY_WHEEL_DELAY 0
12
13/*
14 * MIDI options
15 */
16
17/* Prevent use of disabled MIDI features in the keymap */
18//#define MIDI_ENABLE_STRICT 1
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/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
35//#define MIDI_TONE_KEYCODE_OCTAVES 2
diff --git a/keyboards/planck/keymaps/pickle_jr/keymap.c b/keyboards/planck/keymaps/pickle_jr/keymap.c
new file mode 100644
index 000000000..317ebcf39
--- /dev/null
+++ b/keyboards/planck/keymaps/pickle_jr/keymap.c
@@ -0,0 +1,196 @@
1#include QMK_KEYBOARD_H
2
3#define _QWERTY 0
4#define _LOWER 1
5#define _RAISE 2
6#define _SPECIAL 3
7#define _CALC 4
8#define _NAV 5
9#define _ADJUST 6
10
11#define LOWER MO(_LOWER)
12#define RAISE MO(_RAISE)
13
14#define LPSFT SFT_T(KC_RPRN)
15#define LCCTL CTL_T(KC_LCBR)
16#define RCCTL MT(MOD_RCTL,KC_RCBR)
17#define RPSFT MT(MOD_RSFT,KC_LPRN)
18
19#define SCOLNAV LT(_NAV,KC_SCLN)
20#define TABCALC LT(_CALC, KC_TAB)
21#define QUOCALC LT(_CALC, KC_QUOT)
22#define LBRACK LT(_SPECIAL,KC_LBRC)
23#define RBRACK LT(_SPECIAL,KC_RBRC)
24
25#define LOCK RGUI(KC_L)
26
27enum custom_keycoedes {
28 CTLALTD = SAFE_RANGE,
29 VIMSAVE,
30 VIMWQ
31};
32
33
34bool process_record_user(uint16_t keycode, keyrecord_t *record) {
35 if(record->event.pressed) {
36 switch(keycode) {
37 case CTLALTD:
38 SEND_STRING(SS_DOWN(X_LCTRL)SS_DOWN(X_LALT)SS_DOWN(X_DELETE)SS_UP(X_DELETE)SS_UP(X_LALT)SS_UP(X_LCTRL));
39 return false;
40 case VIMSAVE:
41 SEND_STRING(":w");
42 return false;
43 }
44 }
45 return true;
46};
47
48const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
49
50/* Qwerty
51 * ,----------------------------------------------------------------------------------------------------.
52 * | Tab/CALC | Q | W | E | R | T | Y | U | I | O | P | "/CALC |
53 * |----------+----------+-------+------+------+-------------+------+------+-------+----------+---------|
54 * | Esc | A | S | D | F | G | H | J | K | L | ;/Nav | Enter |
55 * |----------+----------+-------+------+------+------|------+------+------+-------+----------+---------|
56 * | (/SFT | Z | X | C | V | B | N | M | , | . | / | )/SFT |
57 * |----------+----------+-------+------+------+------+------+------+------+-------+----------+---------|
58 * | [/SPC | CTRL |PrintS | GUI | Bksp |Lower |Raise | SPC | ALT |VIMSAVE| CTRL | ]/SPC |
59 * `----------------------------------------------------------------------------------------------------'
60 */
61[_QWERTY] = LAYOUT_planck_grid(
62 TABCALC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, QUOCALC,
63 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SCOLNAV, KC_ENT ,
64 KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC,
65 LBRACK , KC_LCTL, KC_PSCR, KC_LGUI, KC_BSPC, LOWER, RAISE, KC_SPC, KC_RALT, VIMSAVE, KC_RCTL, RBRACK
66),
67
68/* Lower
69 * ,-----------------------------------------------------------------------------------.
70 * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
71 * |------+------+------+------+------+-------------+------+------+------+------+------|
72 * | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | |
73 * |------+------+------+------+------+------|------+------+------+------+------+------|
74 * | | | | | | | | | | | | |
75 * |------+------+------+------+------+------+------+------+------+------+------+------|
76 * | | | | | | | | DEL | | | | |
77 * `-----------------------------------------------------------------------------------'
78 */
79[_LOWER] = LAYOUT_planck_grid(
80 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12 ,
81 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, _______,
82 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
83 _______, _______, _______, _______, _______, KC_TRNS, _______, KC_DEL, _______, _______, _______, _______
84),
85
86/* Raise
87 * ,-----------------------------------------------------------------------------------.
88 * | | | | | | | | | | | | |
89 * |------+------+------+------+------+-------------+------+------+------+------+------|
90 * | ! | @ | # | $ | % | ^ | & | * | - | = | + | |
91 * |------+------+------+------+------+------|------+------+------+------+------+------|
92 * | | | ~ | ` | CTRL | | | | | _ | | | |
93 * |------+------+------+------+------+------+------+------+------+------+------+------|
94 * | | | | | | | | | | | |
95 * `-----------------------------------------------------------------------------------'
96 */
97[_RAISE] = LAYOUT_planck_grid(
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
99 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL, KC_PLUS, _______,
100 _______, _______, KC_TILD, KC_GRV, KC_LCTRL, _______, KC_PIPE, _______, KC_UNDS, _______, _______, _______,
101 _______, _______, _______, _______, _______, _______, KC_TRNS, _______, _______, _______, _______, _______
102),
103
104/* Special
105 * ,------------------------------------------------------------------------------------.
106 * | | M2 | MUP | M1 | WUP | | CAPS | | | | | |
107 * |------+------+------+------+------+--------------+------+------+------+------+------|
108 * | |MLEFT |MDOWN |MRIGHT|WDOWN | |PRTSCRE| | | | | |
109 * |------+------+------+------+------+------|-------+------+------+------+------+------|
110 * | |WLEFT | M3 |WRIGHT| | |CTLALTD| | | | | |
111 * |------+------+------+------+------+------+-------+------+------+------+------+------|
112 * | | PREV | PLAY | NEXT | | | LOCK | | MUTE | VOL- | VOL+ | |
113 * `------------------------------------------------------------------------------------'
114 */
115[_SPECIAL] = LAYOUT_planck_grid(
116 _______, KC_BTN2, KC_MS_U, KC_BTN1, KC_WH_U, _______, KC_CAPS, _______, _______, _______, _______, _______,
117 _______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, _______, _______, _______, _______, _______, _______, _______,
118 _______, KC_WH_L, KC_BTN3, KC_WH_R, _______, _______, CTLALTD, _______, _______, _______, _______, _______,
119 KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, LOCK, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS
120),
121
122/* Calc
123 * ,-----------------------------------------------------------------------------------.
124 * | | F7 | F8 | F9 | | | * | 7 | 8 | 9 | / | |
125 * |------+------+------+------+------+-------------+------+------+------+------+------|
126 * | | F4 | F5 | F6 | | | + | 4 | 5 | 6 | - | \ |
127 * |------+------+------+------+------+------|------+------+------+------+------+------|
128 * | | F1 | F2 | F3 | | | | 1 | 2 | 3 | = | |
129 * |------+------+------+------+------+------+------+------+------+------+------+------|
130 * | | | F11 | F12 | | DEL | Bksp | 0 | | | | RET |
131 * `-----------------------------------------------------------------------------------'
132 */
133[_CALC] = LAYOUT_planck_grid(
134 KC_TRNS, KC_F7, KC_F8, KC_F9, _______, _______, KC_ASTR, KC_7, KC_8, KC_9, KC_BSLS, KC_TRNS,
135 _______, KC_F4, KC_F5, KC_F6, _______, _______, KC_PLUS, KC_4, KC_5, KC_6, KC_MINS, KC_BSLS,
136 _______, KC_F1, KC_F2, KC_F3, _______, _______, _______, KC_1, KC_2, KC_3, KC_EQL, _______,
137 _______, _______, KC_F11, KC_F12, _______, KC_DEL, KC_BSPC, KC_0, _______, _______, KC_ENT, _______
138),
139
140/* Nav
141 * ,-----------------------------------------------------------------------------------.
142 * | | | | | | | | | | | | |
143 * |------+------+------+------+------+------+------+------+------+------+------+------|
144 * | | | HOME | PGUP | PGDN | END | LEFT | DOWN | UP |RIGHT | | |
145 * |------+------+------+------+------+------+------+------+------+------+------+------|
146 * | | | | | | | | | | | | |
147 * |------+------+------+------+------+------+------+------+------+------+------+------|
148 * | | | | | | | | | | | | |
149 * `-----------------------------------------------------------------------------------'
150 */
151[_NAV] = LAYOUT_planck_grid(
152 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
153 _______, _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TRNS, _______,
154 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
155 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
156),
157
158/* Adjust (Lower + Raise)
159 * ,-------------------------------------------------------------------------------------------.
160 * | | Reset| |RGB_TOG|RGB_MOD|RGB_HUI|RGB_HUD|RGB_SAI|RGB_SAD|RGB_VAI|RGB_VAD| Del |
161 * |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
162 * | | |MU_MOD|Aud on |Audoff |AGnorm |AGswap | | | | | |
163 * |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
164 * | |Voice-|Voice+|Mus on |Musoff |MIDIon |MIDIof |TERMon |TERMof | | | |
165 * |------+------+------+-------+-------+-------+-------+-------+-------+-------+-------+------|
166 * | | | | | | | | | | | |
167 * `-------------------------------------------------------------------------------------------'
168 */
169[_ADJUST] = LAYOUT_planck_grid(
170 _______, RESET, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
171 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
172 _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______,
173 _______, _______, _______, _______, _______, KC_TRNS, KC_TRNS, _______, _______, _______, _______, _______
174)
175
176
177};
178
179#ifdef AUDIO_ENABLE
180 float plover_song[][2] = SONG(PLOVER_SOUND);
181 float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
182#endif
183
184uint32_t layer_state_set_user(uint32_t state) {
185 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
186};
187
188bool music_mask_user(uint16_t keycode) {
189 switch (keycode) {
190 case RAISE:
191 case LOWER:
192 return false;
193 default:
194 return true;
195 }
196};
diff --git a/keyboards/planck/keymaps/pickle_jr/rules.mk b/keyboards/planck/keymaps/pickle_jr/rules.mk
new file mode 100644
index 000000000..d452c706d
--- /dev/null
+++ b/keyboards/planck/keymaps/pickle_jr/rules.mk
@@ -0,0 +1,18 @@
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
12AUDIO_ENABLE = yes # Audio output on port C6
13UNICODE_ENABLE = no # Unicode
14BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
15RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
16
17# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
18SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend \ No newline at end of file