aboutsummaryrefslogtreecommitdiff
path: root/keyboards/redox
diff options
context:
space:
mode:
authorFabien Culpo <fabien.culpo@gmail.com>2019-03-27 01:41:37 +0000
committerDrashna Jaelre <drashna@live.com>2019-03-26 18:41:37 -0700
commit509668ca7ce224a389a2caa3ff4df19302d4efc1 (patch)
tree863885a669a37699dfbf5392b99aa41fa504804b /keyboards/redox
parentd8371b3380ffb07239d4920d3748f4af92d937f5 (diff)
downloadqmk_firmware-509668ca7ce224a389a2caa3ff4df19302d4efc1.tar.gz
qmk_firmware-509668ca7ce224a389a2caa3ff4df19302d4efc1.zip
[Keymap] add redox/rev1:fculpo keymap (#5491)
Diffstat (limited to 'keyboards/redox')
-rw-r--r--keyboards/redox/keymaps/fculpo/config.h34
-rw-r--r--keyboards/redox/keymaps/fculpo/keymap.c92
-rw-r--r--keyboards/redox/keymaps/fculpo/keymap.json399
-rw-r--r--keyboards/redox/keymaps/fculpo/readme.md18
-rw-r--r--keyboards/redox/keymaps/fculpo/rules.mk2
5 files changed, 545 insertions, 0 deletions
diff --git a/keyboards/redox/keymaps/fculpo/config.h b/keyboards/redox/keymaps/fculpo/config.h
new file mode 100644
index 000000000..bff76aef2
--- /dev/null
+++ b/keyboards/redox/keymaps/fculpo/config.h
@@ -0,0 +1,34 @@
1/*
2Copyright 2018 Mattia Dal Ben <matthewdibi@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20/* Use I2C or Serial, not both */
21#define USE_SERIAL
22// #define USE_I2C
23
24/* Select hand configuration */
25#define MASTER_LEFT
26//#define MASTER_RIGHT
27//#define EE_HANDS
28
29#undef RGBLED_NUM
30#define RGBLIGHT_ANIMATIONS
31#define RGBLED_NUM 14
32#define RGBLIGHT_HUE_STEP 8
33#define RGBLIGHT_SAT_STEP 8
34#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/redox/keymaps/fculpo/keymap.c b/keyboards/redox/keymaps/fculpo/keymap.c
new file mode 100644
index 000000000..b5aeca99d
--- /dev/null
+++ b/keyboards/redox/keymaps/fculpo/keymap.c
@@ -0,0 +1,92 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5// Each layer gets a name for readability, which is then used in the keymap matrix below.
6// The underscores don't mean anything - you can have a layer called STUFF or any other name.
7// Layer names don't all need to be of the same length, obviously, and you can also skip them
8// entirely and just use numbers.
9#define _QWERTY 0
10#define _SYMB 1
11#define _NAV 2
12#define _ADJUST 3
13
14enum custom_keycodes {
15 QWERTY = SAFE_RANGE,
16 SYMB,
17 NAV,
18 ADJUST,
19};
20
21// Shortcut to make keymap more readable
22#define SYM_L MO(_SYMB)
23
24#define KC_ALAS LALT_T(KC_PAST)
25#define KC_CTES LCTL_T(KC_ESC)
26#define KC_CTQU RCTL_T(KC_QUOT)
27
28#define KC_NAGR LT(_NAV, KC_GRV)
29#define KC_NAMI LT(_NAV, KC_MINS)
30
31#define KC_ADEN LT(_ADJUST, KC_END)
32#define KC_ADPU LT(_ADJUST, KC_PGUP)
33
34const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
35
36 [_QWERTY] = LAYOUT(
37 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
38 KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
39 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
40 KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,SYM_L , SYM_L ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
41 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
42 KC_CTES ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_LBRC , KC_RBRC ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_CTQU ,
43 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
44 KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_ADPU ,KC_PGDN , KC_HOME ,KC_ADEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
45 //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
46 KC_BSLS ,KC_PPLS ,KC_PMNS ,KC_ALAS , KC_LGUI , KC_BSPC ,KC_DEL , KC_ENT ,KC_SPC , KC_RALT , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
47 //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
48 ),
49
50 [_SYMB] = LAYOUT(
51 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
52 _______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F8 ,KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 ,_______ ,
53 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
54 _______ ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_PIPE ,KC_F6 , KC_F7 ,XXXXXXX ,KC_KP_7 ,KC_KP_8 ,KC_KP_9 ,XXXXXXX ,_______ ,
55 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
56 _______ ,KC_HASH ,KC_DLR ,KC_LBRC ,KC_RBRC ,KC_GRV ,_______ , _______ ,XXXXXXX ,KC_KP_4 ,KC_KP_5 ,KC_KP_6 ,XXXXXXX ,XXXXXXX ,
57 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
58 _______ ,KC_PERC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,KC_TILD ,_______ ,_______ , _______ ,_______ ,XXXXXXX ,KC_KP_1 ,KC_KP_2 ,KC_KP_3 ,XXXXXXX ,XXXXXXX ,
59 //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
60 _______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , KC_KP_0 , KC_KP_0 ,KC_PDOT ,XXXXXXX ,XXXXXXX
61 //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
62 ),
63
64 [_NAV] = LAYOUT(
65 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
66 _______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
67 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
68 XXXXXXX ,XXXXXXX ,KC_MS_U ,XXXXXXX ,KC_WH_U ,XXXXXXX ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
69 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
70 XXXXXXX ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_WH_D ,XXXXXXX ,_______ , _______ ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
71 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
72 XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
73 //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
74 XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , KC_BTN1 , KC_BTN2 ,_______ , _______ ,_______ , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
75 //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
76 ),
77
78 [_ADJUST] = LAYOUT(
79 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
80 XXXXXXX ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,KC_F11 ,
81 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
82 XXXXXXX ,RESET ,RGB_M_P ,RGB_TOG ,RGB_MOD ,RGB_HUD ,RGB_HUI , RGB_SAD ,RGB_SAI ,RGB_VAD ,RGB_VAI ,XXXXXXX ,XXXXXXX ,KC_F12 ,
83 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
84 XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
85 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
86 XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,XXXXXXX , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
87 //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
88 XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
89 //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
90 )
91
92};
diff --git a/keyboards/redox/keymaps/fculpo/keymap.json b/keyboards/redox/keymaps/fculpo/keymap.json
new file mode 100644
index 000000000..ca7905b16
--- /dev/null
+++ b/keyboards/redox/keymaps/fculpo/keymap.json
@@ -0,0 +1,399 @@
1[
2 {
3 "name": "Redox/rev1",
4 "author": "Fabien Culpo",
5 "switchMount": "cherry",
6 "plate": false,
7 "pcb": false
8 },
9 [
10 {
11 "x": 3.5
12 },
13 "#\n3",
14 {
15 "x": 10.5
16 },
17 "*\n8"
18 ],
19 [
20 {
21 "y": -0.875,
22 "x": 2.5
23 },
24 "@\n2",
25 {
26 "x": 1
27 },
28 "$\n4",
29 {
30 "x": 8.5
31 },
32 "&\n7",
33 {
34 "x": 1
35 },
36 "(\n9"
37 ],
38 [
39 {
40 "y": -0.875,
41 "x": 5.5
42 },
43 "%\n5",
44 {
45 "x": 6.5
46 },
47 "^\n6"
48 ],
49 [
50 {
51 "y": -0.875,
52 "x": 0.25,
53 "a": 5,
54 "w": 1.25
55 },
56 "`\nLayer 2\n\n\n\n\n~",
57 {
58 "a": 4
59 },
60 "!\n1",
61 {
62 "x": 14.5
63 },
64 ")\n0",
65 {
66 "a": 5,
67 "w": 1.25
68 },
69 "_\nLayer 2\n\n\n\n\n-"
70 ],
71 [
72 {
73 "y": -0.625,
74 "x": 6.5
75 },
76 "Layer 1",
77 {
78 "x": 4.5
79 },
80 "Layer 1"
81 ],
82 [
83 {
84 "y": -0.75,
85 "x": 3.5,
86 "a": 4
87 },
88 "E",
89 {
90 "x": 10.5
91 },
92 "I"
93 ],
94 [
95 {
96 "y": -0.875,
97 "x": 2.5
98 },
99 "W",
100 {
101 "x": 1
102 },
103 "R",
104 {
105 "x": 8.5
106 },
107 "U",
108 {
109 "x": 1
110 },
111 "O"
112 ],
113 [
114 {
115 "y": -0.875,
116 "x": 5.5
117 },
118 "T",
119 {
120 "x": 6.5
121 },
122 "Y"
123 ],
124 [
125 {
126 "y": -0.875,
127 "x": 0.25,
128 "a": 7,
129 "w": 1.25
130 },
131 "TAB",
132 {
133 "a": 4
134 },
135 "Q",
136 {
137 "x": 14.5
138 },
139 "P",
140 {
141 "a": 5,
142 "w": 1.25
143 },
144 "+\n="
145 ],
146 [
147 {
148 "y": -0.625,
149 "x": 6.5,
150 "a": 7,
151 "h": 1.5
152 },
153 "[",
154 {
155 "x": 4.5,
156 "h": 1.5
157 },
158 "]"
159 ],
160 [
161 {
162 "y": -0.75,
163 "x": 3.5,
164 "a": 4
165 },
166 "D",
167 {
168 "x": 10.5
169 },
170 "K"
171 ],
172 [
173 {
174 "y": -0.875,
175 "x": 2.5
176 },
177 "S",
178 {
179 "x": 1,
180 "n": true
181 },
182 "F",
183 {
184 "x": 8.5,
185 "n": true
186 },
187 "J",
188 {
189 "x": 1
190 },
191 "L"
192 ],
193 [
194 {
195 "y": -0.875,
196 "x": 5.5
197 },
198 "G",
199 {
200 "x": 6.5
201 },
202 "H"
203 ],
204 [
205 {
206 "y": -0.875,
207 "x": 0.25,
208 "a": 5,
209 "w": 1.25
210 },
211 "ESC\nCTRL",
212 {
213 "a": 4
214 },
215 "A",
216 {
217 "x": 14.5
218 },
219 ":\n;",
220 {
221 "a": 5,
222 "w": 1.25
223 },
224 "'\nCTRL"
225 ],
226 [
227 {
228 "y": -0.375,
229 "x": 3.5,
230 "a": 4
231 },
232 "C",
233 {
234 "x": 10.5
235 },
236 "<\n,"
237 ],
238 [
239 {
240 "y": -0.875,
241 "x": 2.5
242 },
243 "X",
244 {
245 "x": 1
246 },
247 "V",
248 {
249 "x": 8.5
250 },
251 "M",
252 {
253 "x": 1
254 },
255 ">\n."
256 ],
257 [
258 {
259 "y": -0.875,
260 "x": 5.5
261 },
262 "B",
263 {
264 "x": 6.5
265 },
266 "N"
267 ],
268 [
269 {
270 "y": -0.875,
271 "x": 0.25,
272 "a": 5,
273 "w": 1.25
274 },
275 "SHIFT",
276 {
277 "a": 4
278 },
279 "Z",
280 {
281 "x": 14.5
282 },
283 "?\n/",
284 {
285 "a": 5,
286 "w": 1.25
287 },
288 "SHIFT"
289 ],
290 [
291 {
292 "y": -0.375,
293 "x": 3.5
294 },
295 "*\nALT",
296 {
297 "x": 10.5
298 },
299 "Left"
300 ],
301 [
302 {
303 "y": -0.875,
304 "x": 2.5
305 },
306 "-",
307 {
308 "x": 12.5
309 },
310 "Down"
311 ],
312 [
313 {
314 "y": -0.75,
315 "x": 0.5
316 },
317 "|\n\n\n\n\n\n\\",
318 "+",
319 {
320 "x": 14.5
321 },
322 "Up",
323 {
324 "sb": "cherry",
325 "st": "MX1A-21xx"
326 },
327 "Right"
328 ],
329 [
330 {
331 "r": 15,
332 "y": -2.625,
333 "x": 5.75,
334 "a": 7,
335 "w": 1.25
336 },
337 "SUPER"
338 ],
339 [
340 {
341 "r": 30,
342 "rx": 6.5,
343 "ry": 4.25,
344 "y": -1,
345 "a": 5
346 },
347 "PgUp\nLay. 3",
348 {
349 "a": 7
350 },
351 "PgDn"
352 ],
353 [
354 {
355 "h": 1.5
356 },
357 "Bksp",
358 {
359 "h": 1.5
360 },
361 "Del"
362 ],
363 [
364 {
365 "r": -30,
366 "rx": 13,
367 "y": -1,
368 "x": -2
369 },
370 "Home",
371 {
372 "a": 5
373 },
374 "End\nLay. 3"
375 ],
376 [
377 {
378 "x": -2,
379 "a": 7,
380 "h": 1.5
381 },
382 "Enter",
383 {
384 "h": 1.5
385 },
386 "Space"
387 ],
388 [
389 {
390 "r": -15,
391 "rx": 0,
392 "ry": 0,
393 "y": 7.75,
394 "x": 11.75,
395 "w": 1.25
396 },
397 "ALT"
398 ]
399]
diff --git a/keyboards/redox/keymaps/fculpo/readme.md b/keyboards/redox/keymaps/fculpo/readme.md
new file mode 100644
index 000000000..1250e47b9
--- /dev/null
+++ b/keyboards/redox/keymaps/fculpo/readme.md
@@ -0,0 +1,18 @@
1# A tweaked keymap for Redox
2
3This keymap modifies the [default keymap](https://github.com/qmk/qmk_firmware/tree/master/keyboards/redox) for the awesome [Redox keyboard](https://github.com/mattdibi/redox-keyboard) designed by Mattia Dal Ben.
4
5Also heavily inspired by nrichers layout.
6
7![fculpo Layout Image](https://i.imgur.com/OXT8boJ.png)
8
9## Changes to the default keymap
10
11These keymap changes are meant to improve the usability of the layout in everyday use:
12
13- Move `GUI` (`SUPER`) key to where default left `CTRL` is
14- Move `/?` into usual location next to right `SHIFT` - the default flash from Falbatech put `\|` here (might not be the Redox default?), which felt unintuitive
15- Put `\|` into bottom-left spot where `GUI` (`SUPER`) was - had to go somewhere and this bottom-left placement sort of balances with the almost bottom-right `/?`
16- Change default `ESC` into `ESC` on tap, `CTRL` on hold - Love the UNIX-ey `CTRL` key location and wanted to keep `ESC` in the original position
17- Change default `'` above right `SHIFT` into `'` on tap, `CTRL` on hold - Love the UNIX-ey CTRL key location, but it can give you 'left claw hand', which a second, mirrored `CTRL` key fixes
18- Add `F11` and `F12` keys to two layers - needed on macOS if you want to control volume up and down from your keyboard (not shown, on a different layer)S
diff --git a/keyboards/redox/keymaps/fculpo/rules.mk b/keyboards/redox/keymaps/fculpo/rules.mk
new file mode 100644
index 000000000..a81250cdf
--- /dev/null
+++ b/keyboards/redox/keymaps/fculpo/rules.mk
@@ -0,0 +1,2 @@
1RGBLIGHT_ENABLE = yes
2