aboutsummaryrefslogtreecommitdiff
path: root/keyboards/space_space/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/space_space/keymaps')
-rw-r--r--keyboards/space_space/keymaps/big_space/config.h27
-rw-r--r--keyboards/space_space/keymaps/big_space/keymap.c131
-rw-r--r--keyboards/space_space/keymaps/big_space/rules.mk1
-rw-r--r--keyboards/space_space/keymaps/default/config.h27
-rw-r--r--keyboards/space_space/keymaps/default/keymap.c133
-rw-r--r--keyboards/space_space/keymaps/default/rules.mk1
-rw-r--r--keyboards/space_space/keymaps/readme.md76
7 files changed, 396 insertions, 0 deletions
diff --git a/keyboards/space_space/keymaps/big_space/config.h b/keyboards/space_space/keymaps/big_space/config.h
new file mode 100644
index 000000000..ffc2124e1
--- /dev/null
+++ b/keyboards/space_space/keymaps/big_space/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/space_space/keymaps/big_space/keymap.c b/keyboards/space_space/keymaps/big_space/keymap.c
new file mode 100644
index 000000000..9aeeb2ef4
--- /dev/null
+++ b/keyboards/space_space/keymaps/big_space/keymap.c
@@ -0,0 +1,131 @@
1/* Copyright 2020 qpockets
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 layers{
20 _BASE,
21 _SYM,
22 _NUM,
23 _NAV
24};
25
26enum combo_events {
27 COMBO_BSPC,
28 COMBO_ENT,
29 COMBO_TAB,
30 COMBO_ESC,
31 COMBO_DEL
32};
33#define KC_UP_SPC LT(_SYM, KC_SPC)
34#define KC_GZ LGUI_T(KC_Z)
35#define KC_AA LALT_T(KC_A)
36#define KC_CC LCTL_T(KC_C)
37#define KC_SF LSFT_T(KC_F)
38#define KC_SJ RSFT_T(KC_J)
39#define KC_CCOMM RCTL_T(KC_COMM)
40#define KC_AQUOT RALT_T(KC_QUOT)
41#define KC_GSLSH RGUI_T(KC_SLSH)
42
43const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 [_BASE] = LAYOUT_big_space(
45 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
46 KC_AA, KC_S, KC_D, KC_SF, KC_G, KC_BSPC, KC_H, KC_SJ, KC_K, KC_L, KC_AQUOT,
47 KC_GZ, KC_X, KC_CC, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_CCOMM, KC_DOT, KC_GSLSH,
48 MO(_NAV), KC_UP_SPC, KC_RALT
49 ),
50
51 [_SYM] = LAYOUT_big_space(
52 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
53 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
54 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
55 KC_TRNS, KC_TRNS, KC_TRNS
56 ),
57
58 [_NAV] = LAYOUT_big_space(
59 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
60 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
61 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
62 KC_TRNS, KC_TRNS, KC_TRNS
63 ),
64};
65
66void encoder_update_user(uint8_t index, bool clockwise) {
67 if (index == 1) { /* left encoder*/
68 switch(get_highest_layer(layer_state)){
69
70 case _NAV:
71 if (clockwise) {
72 tap_code16(C(KC_TAB));
73 } else {
74 tap_code16(C(S(KC_TAB)));
75 }
76 break;
77
78 case _SYM:
79 if (clockwise) {
80 tap_code(KC_PGUP);
81 } else {
82 tap_code(KC_PGDN);
83
84 }
85 break;
86
87 default:
88 if (clockwise){
89 tap_code(KC_WH_U);
90 } else{
91 tap_code(KC_WH_D);
92 }
93 break;
94 }
95 } else if (index == 0) { /* right encoder */
96 switch(get_highest_layer(layer_state)){
97
98 case _SYM:
99 if (clockwise) {
100 tap_code(KC_MPRV);
101 } else {
102 tap_code(KC_MNXT);
103 }
104 break;
105
106 default:
107 if (clockwise){
108 tap_code(KC_VOLU);
109 } else{
110 tap_code(KC_VOLD);
111 }
112 break;
113 }
114 }
115}
116
117#ifdef COMBO_ENABLE
118const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
119const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
120const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
121const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
122const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
123
124combo_t key_combos[COMBO_COUNT] = {
125 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
126 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
127 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
128 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
129 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
130};
131#endif
diff --git a/keyboards/space_space/keymaps/big_space/rules.mk b/keyboards/space_space/keymaps/big_space/rules.mk
new file mode 100644
index 000000000..ff681299e
--- /dev/null
+++ b/keyboards/space_space/keymaps/big_space/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/space_space/keymaps/default/config.h b/keyboards/space_space/keymaps/default/config.h
new file mode 100644
index 000000000..ffc2124e1
--- /dev/null
+++ b/keyboards/space_space/keymaps/default/config.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 qpockets
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/*Modtaps*/
20#define TAPPING_TERM 175
21#define IGNORE_MOD_TAP_INTERRUPT
22
23/*Combos*/
24#ifdef COMBO_ENABLE
25# define COMBO_COUNT 5
26# define COMBO_TERM 50
27#endif \ No newline at end of file
diff --git a/keyboards/space_space/keymaps/default/keymap.c b/keyboards/space_space/keymaps/default/keymap.c
new file mode 100644
index 000000000..81b53abfe
--- /dev/null
+++ b/keyboards/space_space/keymaps/default/keymap.c
@@ -0,0 +1,133 @@
1/* Copyright 2020 qpockets
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 layers{
20 _BASE,
21 _SYM,
22 _NUM,
23 _NAV
24};
25
26enum combo_events {
27 COMBO_BSPC,
28 COMBO_ENT,
29 COMBO_TAB,
30 COMBO_ESC,
31 COMBO_DEL
32};
33#define KC_DN_BSPC LT(_NUM, KC_BSPC)
34#define KC_UP_SPC LT(_SYM, KC_SPC)
35#define KC_SF LSFT_T(KC_F)
36#define KC_SJ RSFT_T(KC_J)
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [_BASE] = LAYOUT_default(
40 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
41 KC_A, KC_S, KC_D, KC_SF, KC_G, KC_TAB, KC_H, KC_SJ, KC_K, KC_L, KC_QUOT,
42 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LSFT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
43 KC_LCTL, MO(_NAV), KC_DN_BSPC, KC_UP_SPC, KC_LGUI, KC_RALT
44 ),
45
46 [_SYM] = LAYOUT_default(
47 KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0,
48 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS, KC_CIRC, KC_AMPR, KC_ASTR, KC_EQUAL, KC_MINS,
49 KC_PIPE, KC_BSLS, KC_LPRN, KC_LBRC, KC_SCLN, KC_TRNS, KC_COLN, KC_RBRC, KC_RPRN, KC_PLUS, KC_UNDS,
50 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
51 ),
52
53 [_NUM] = LAYOUT_default(
54 KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_EQL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
55 KC_PLUS, KC_P4, KC_P5, KC_P6, KC_BSPC, KC_LSFT, KC_TRNS, KC_TRNS, KC_SCLN, KC_COLN, KC_TAB,
56 KC_PAST, KC_P1, KC_P2, KC_P3, KC_ENT, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT,
57 KC_P0, KC_PDOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
58 ),
59
60 [_NAV] = LAYOUT_default(
61 KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC,
62 KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB,
63 KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_LCAP, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_ENT,
64 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
65 ),
66};
67
68void encoder_update_user(uint8_t index, bool clockwise) {
69 if (index == 1) { /* left encoder*/
70 switch(get_highest_layer(layer_state)){
71
72 case _NAV:
73 if (clockwise) {
74 tap_code16(C(KC_TAB));
75 } else {
76 tap_code16(C(S(KC_TAB)));
77 }
78 break;
79
80 case _NUM:
81 if (clockwise) {
82 tap_code(KC_PGUP);
83 } else {
84 tap_code(KC_PGDN);
85
86 }
87 break;
88
89 default:
90 if (clockwise){
91 tap_code(KC_WH_U);
92 } else{
93 tap_code(KC_WH_D);
94 }
95 break;
96 }
97 } else if (index == 0) { /* right encoder */
98 switch(get_highest_layer(layer_state)){
99
100 case _SYM:
101 if (clockwise) {
102 tap_code(KC_MPRV);
103 } else {
104 tap_code(KC_MNXT);
105 }
106 break;
107
108 default:
109 if (clockwise){
110 tap_code(KC_VOLU);
111 } else{
112 tap_code(KC_VOLD);
113 }
114 break;
115 }
116 }
117}
118
119#ifdef COMBO_ENABLE
120const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
121const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
122const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
123const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
124const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
125
126combo_t key_combos[COMBO_COUNT] = {
127 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
128 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
129 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
130 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
131 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
132};
133#endif
diff --git a/keyboards/space_space/keymaps/default/rules.mk b/keyboards/space_space/keymaps/default/rules.mk
new file mode 100644
index 000000000..ff681299e
--- /dev/null
+++ b/keyboards/space_space/keymaps/default/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/space_space/keymaps/readme.md b/keyboards/space_space/keymaps/readme.md
new file mode 100644
index 000000000..79e944c71
--- /dev/null
+++ b/keyboards/space_space/keymaps/readme.md
@@ -0,0 +1,76 @@
1space space default layout
2
3Default layout on space space uses 3 layers + base, 5 combos, layer taps on the split space bars, and tap-hold for shift on F & J.
4
5* combos include:
6
7O+P = backspace
8
9K+L = enter
10
11S+D = tab
12
13T+Y = escape
14
15Q+W = delete
16
17
18* The encoders are also set to function differently depending on layer:
19
20right encoder
21default = volume up/down
22
23symbol layer (hold space) = media next/previous
24
25left encoder
26default = mousewheel up/down
27
28number layer (hold backspace) = page up/down
29
30nav layer (hold Fn) = control tab/control shift tab
31
32Default Layout:
33
34```
35Base
36
37 ,-------------------------------------------------------------------.
38 | Q | W | E | R | T | Del | Y | U | I | O | P |
39 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
40 | A | S | D | F | G | Tab | H | J | K | L | " |
41 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
42 | Z | X | C | V | B | Shift | N | M | , | . | / |
43 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
44 | Ctrl | FN | Back | Space | Gui | Alt |
45 `-------------------------------------------------'
46Symbols
47 ,-------------------------------------------------------------------.
48 | 1 | 2 | 3 | 4 | 5 | Del | 6 | 7 | 8 | 9 | 0 |
49 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
50 | ! | @ | # | $ | % | Tab | ^ | & | * | = | - |
51 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
52 | | | \ | ( | [ | ; | Shift | : | ] | ) | + | _ |
53 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
54 | Ctrl | FN | Back | Space | Gui | Alt |
55 `-------------------------------------------------'
56Numpad
57 ,-------------------------------------------------------------------.
58 | / | 7 | 8 | 9 | - | = | Y | U | I | O | Bsp |
59 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
60 | + | 4 | 5 | 6 | Bsp | Shift | H | J | K | L | Tab |
61 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
62 | * | 1 | 2 | 3 | Ent | Tab | N | M | , | . | Ent |
63 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
64 | 0 | . | Back | Space | Gui | Alt |
65 `-------------------------------------------------'
66Nav
67 ,-------------------------------------------------------------------.
68 | Hm | Up | End | PgU | T | Del | Y | U | I | O | Bsp |
69 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
70 | Lft | Dn | Rgt | PgD | G | Tab | H | J | K | L | Tab |
71 |-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----|
72 | Prv | Pse | Nxt | V | B | Caps | N | M | , | . | Ent |
73 `-----+-----+-----+-----+-----+-------+-----+-----+-----+-----+-----'
74 | Ctrl | FN | Back | Space | Gui | Alt |
75 `-------------------------------------------------'
76