aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarred Steenvoorden <jazzjarred@gmail.com>2018-07-22 05:15:31 +1000
committerDrashna Jaelre <drashna@live.com>2018-07-21 12:15:31 -0700
commit8def9bc642a7bdd59eddd30f70c05b62ca37f627 (patch)
treeb9e45fc7b2f260bcb5fd4424f55360f43c0a01ba
parent3fc5a05d663ae2ea960e16fa16e976f9dd70b0f2 (diff)
downloadqmk_firmware-8def9bc642a7bdd59eddd30f70c05b62ca37f627.tar.gz
qmk_firmware-8def9bc642a7bdd59eddd30f70c05b62ca37f627.zip
Keymap: Jarreds keymap creation (#3459)
* Add planck keymap * Add windows key to nav layer * Turn off mouse layer * Update userspace file to allow sharing between more boards
-rw-r--r--keyboards/planck/keymaps/jarred/config.h39
-rw-r--r--keyboards/planck/keymaps/jarred/keymap.c33
-rw-r--r--keyboards/planck/keymaps/jarred/readme.md9
-rw-r--r--keyboards/planck/keymaps/jarred/rules.mk4
-rw-r--r--users/jarred/jarred.c17
-rw-r--r--users/jarred/jarred.h124
-rw-r--r--users/jarred/readme.md5
-rw-r--r--users/jarred/rules.mk1
8 files changed, 232 insertions, 0 deletions
diff --git a/keyboards/planck/keymaps/jarred/config.h b/keyboards/planck/keymaps/jarred/config.h
new file mode 100644
index 000000000..f98b8935e
--- /dev/null
+++ b/keyboards/planck/keymaps/jarred/config.h
@@ -0,0 +1,39 @@
1/* Copyright 2018 Jarred Steenvoorden
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#ifndef CONFIG_USER_H
18#define CONFIG_USER_H
19
20#include "config_common.h"
21
22#define PREVENT_STUCK_MODIFIERS
23
24#ifdef AUDIO_ENABLE
25 #define STARTUP_SONG SONG(PLANCK_SOUND)
26#endif
27
28#define TAPPING_TERM 200
29
30#define MOUSEKEY_DELAY 0
31#define MOUSEKEY_INTERVAL 16
32#define MOUSEKEY_TIME_TO_MAX 40
33#define MOUSEKEY_MAX_SPEED 5
34
35#define MOUSEKEY_WHEEL_DELAY 0
36#define MOUSEKEY_WHEEL_MAX_SPEED 4
37#define MOUSEKEY_WHEEL_TIME_TO_MAX 255
38
39#endif
diff --git a/keyboards/planck/keymaps/jarred/keymap.c b/keyboards/planck/keymaps/jarred/keymap.c
new file mode 100644
index 000000000..6697c4ea4
--- /dev/null
+++ b/keyboards/planck/keymaps/jarred/keymap.c
@@ -0,0 +1,33 @@
1/* Copyright 2018 Jarred Steenvoorden
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 "planck.h"
18#include "jarred.h"
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [_QW] = LAYOUT_planck_grid_wrapper(QWERTY_4x12),
22 [_LW] = LAYOUT_planck_grid_wrapper(LOWER_4x12),
23 [_NV] = LAYOUT_planck_grid_wrapper(NAV_4x12),
24 [_NP] = LAYOUT_planck_grid_wrapper(NUMPAD_4x12),
25 [_MS] = LAYOUT_planck_grid_wrapper(MOUSE_4x12)
26};
27
28#ifdef RGB_MATRIX_H
29void rgb_matrix_indicators_user(void) {
30 // Disable light in middle of 2U position
31 rgb_matrix_set_color(42, 0, 0, 0);
32}
33#endif \ No newline at end of file
diff --git a/keyboards/planck/keymaps/jarred/readme.md b/keyboards/planck/keymaps/jarred/readme.md
new file mode 100644
index 000000000..e6be56412
--- /dev/null
+++ b/keyboards/planck/keymaps/jarred/readme.md
@@ -0,0 +1,9 @@
1# Jarred's Planck Layout
2
3Check out [user space readme](../../../../users/jarred/readme.md) for more info
4
5# Build
6
7```
8make planck/rev4:jarred:dfu
9```
diff --git a/keyboards/planck/keymaps/jarred/rules.mk b/keyboards/planck/keymaps/jarred/rules.mk
new file mode 100644
index 000000000..cd14c41e1
--- /dev/null
+++ b/keyboards/planck/keymaps/jarred/rules.mk
@@ -0,0 +1,4 @@
1# Build options
2
3BACKLIGHT_ENABLE = no # Switch LEDs
4MOUSEKEY_ENABLE = no # Emulates mouse key using keypresses
diff --git a/users/jarred/jarred.c b/users/jarred/jarred.c
new file mode 100644
index 000000000..f8413ca3b
--- /dev/null
+++ b/users/jarred/jarred.c
@@ -0,0 +1,17 @@
1/* Copyright 2018 Jarred Steenvoorden
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 "jarred.h"
diff --git a/users/jarred/jarred.h b/users/jarred/jarred.h
new file mode 100644
index 000000000..b1253f76a
--- /dev/null
+++ b/users/jarred/jarred.h
@@ -0,0 +1,124 @@
1/* Copyright 2018 Jarred Steenvoorden
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#ifndef USERSPACE
18#define USERSPACE
19
20#include "quantum.h"
21
22// Use 7 wide characters for keymaps
23#define _______ KC_TRNS
24#define XXXXXXX KC_NO
25
26// Layers
27#define _QW 0
28#define _LW 1
29#define _NV 2
30#define _NP 3
31#define _MS 4 // Mouse
32
33#define MS_A LT(_MS,KC_A)
34
35// Wrappers
36#define LAYOUT_planck_grid_wrapper(...) LAYOUT_planck_grid(__VA_ARGS__)
37
38/* Qwerty Layer */
39#define QWERTY_L1 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
40#define QWERTY_L2 MO(_NV), KC_A, KC_S, KC_D, KC_F, KC_G
41#define QWERTY_L3 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B
42#define QWERTY_L4 KC_LCTL, KC_LGUI, MO(_NP), KC_LALT, MO(_LW), KC_SPC
43
44#define QWERTY_R1 KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC
45#define QWERTY_R2 KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT
46#define QWERTY_R3 KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT
47#define QWERTY_R4 KC_ENT, MO(_LW), KC_RALT, MO(_MS), KC_APP, KC_RCTL
48
49/* Lower / Upper Layer */
50#define LOWER_L1 KC_ESC , KC_1, KC_2, KC_3, KC_4, KC_5
51#define LOWER_L2 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
52#define LOWER_L3 _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10
53#define LOWER_L4 _______, _______, _______, _______, _______, _______
54
55#define LOWER_R1 KC_6, KC_7, KC_8, KC_9, KC_0, _______
56#define LOWER_R2 KC_F11, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS
57#define LOWER_R3 KC_F12, KC_GRV, _______, _______, _______, _______
58#define LOWER_R4 _______, _______, _______, _______, _______, _______
59
60/* Navigation Layer */
61#define NAV_L1 _______, _______, _______, KC_LGUI, KC_DEL, KC_BSPC
62#define NAV_L2 _______, _______, _______, KC_LSFT, KC_LCTL, KC_ENT
63#define NAV_L3 _______, _______, _______, _______, _______, _______
64#define NAV_L4 _______, _______, _______, _______, _______, _______
65
66#define NAV_R1 _______, KC_HOME, KC_UP , KC_END , KC_INS, _______
67#define NAV_R2 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL, _______
68#define NAV_R3 _______, KC_PGUP, KC_PGDN, _______, _______, _______
69#define NAV_R4 _______, _______, _______, _______, _______, _______
70
71/* Numpad Layer */
72#define NUMPAD_L1 RGB_TOG, RGB_MOD, _______, _______, RGB_HUD, RGB_HUI
73#define NUMPAD_L2 BL_TOGG, BL_STEP, BL_BRTG, _______, RGB_SAD, RGB_SAI
74#define NUMPAD_L3 _______, _______, _______, _______, RGB_VAD, RGB_VAI
75#define NUMPAD_L4 RESET, _______, _______, _______, RGB_SPD, RGB_SPI
76
77#define NUMPAD_R1 _______, KC_P7, KC_P8, KC_P9, KC_PMNS, _______
78#define NUMPAD_R2 _______, KC_P4, KC_P5, KC_P6, KC_PPLS, _______
79#define NUMPAD_R3 _______, KC_P1, KC_P2, KC_P3, KC_PAST, KC_ENT
80#define NUMPAD_R4 _______, KC_P0, XXXXXXX, KC_PDOT, KC_PSLS, KC_ENT
81
82/* Mouse Layer */
83#define MOUSE_L1 _______, _______, _______, _______, _______, _______
84#define MOUSE_L2 _______, _______, KC_ACL1, KC_ACL0, KC_BTN1, KC_BTN2
85#define MOUSE_L3 _______, _______, _______, _______, _______, _______
86#define MOUSE_L4 _______, _______, _______, _______, _______, KC_BTN1
87
88#define MOUSE_R1 _______, KC_WH_U, KC_MS_U, KC_WH_D, _______, _______
89#define MOUSE_R2 _______, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______
90#define MOUSE_R3 _______, _______, _______, _______, _______, _______
91#define MOUSE_R4 KC_BTN2, _______, _______, _______, _______, _______
92
93#define QWERTY_1_12 QWERTY_L1, QWERTY_R1
94#define QWERTY_2_12 QWERTY_L2, QWERTY_R2
95#define QWERTY_3_12 QWERTY_L3, QWERTY_R3
96#define QWERTY_4_12 QWERTY_L4, QWERTY_R4
97
98#define LOWER_1_12 LOWER_L1, LOWER_R1
99#define LOWER_2_12 LOWER_L2, LOWER_R2
100#define LOWER_3_12 LOWER_L3, LOWER_R3
101#define LOWER_4_12 LOWER_L4, LOWER_R4
102
103#define NAV_1_12 NAV_L1, NAV_R1
104#define NAV_2_12 NAV_L2, NAV_R2
105#define NAV_3_12 NAV_L3, NAV_R3
106#define NAV_4_12 NAV_L4, NAV_R4
107
108#define NUMPAD_1_12 NUMPAD_L1, NUMPAD_R1
109#define NUMPAD_2_12 NUMPAD_L2, NUMPAD_R2
110#define NUMPAD_3_12 NUMPAD_L3, NUMPAD_R3
111#define NUMPAD_4_12 NUMPAD_L4, NUMPAD_R4
112
113#define MOUSE_1_12 MOUSE_L1, MOUSE_R1
114#define MOUSE_2_12 MOUSE_L2, MOUSE_R2
115#define MOUSE_3_12 MOUSE_L3, MOUSE_R3
116#define MOUSE_4_12 MOUSE_L4, MOUSE_R4
117
118#define QWERTY_4x12 QWERTY_1_12, QWERTY_2_12, QWERTY_3_12, QWERTY_4_12
119#define LOWER_4x12 LOWER_1_12, LOWER_2_12, LOWER_3_12, LOWER_4_12
120#define NAV_4x12 NAV_1_12, NAV_2_12, NAV_3_12, NAV_4_12
121#define NUMPAD_4x12 NUMPAD_1_12, NUMPAD_2_12, NUMPAD_3_12, NUMPAD_4_12
122#define MOUSE_4x12 MOUSE_1_12, MOUSE_2_12, MOUSE_3_12, MOUSE_4_12
123
124#endif
diff --git a/users/jarred/readme.md b/users/jarred/readme.md
new file mode 100644
index 000000000..9d4e926e7
--- /dev/null
+++ b/users/jarred/readme.md
@@ -0,0 +1,5 @@
1# Jarred's user space
2
3Keymaps:
4
5- [Planck](../../keyboards/planck/keymaps/jarred/readme.md)
diff --git a/users/jarred/rules.mk b/users/jarred/rules.mk
new file mode 100644
index 000000000..3c15cd0f9
--- /dev/null
+++ b/users/jarred/rules.mk
@@ -0,0 +1 @@
SRC += jarred.c