aboutsummaryrefslogtreecommitdiff
path: root/keyboards/space_space/rev2/keymaps/big_space/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/space_space/rev2/keymaps/big_space/keymap.c')
-rw-r--r--keyboards/space_space/rev2/keymaps/big_space/keymap.c81
1 files changed, 81 insertions, 0 deletions
diff --git a/keyboards/space_space/rev2/keymaps/big_space/keymap.c b/keyboards/space_space/rev2/keymaps/big_space/keymap.c
new file mode 100644
index 000000000..a272c001b
--- /dev/null
+++ b/keyboards/space_space/rev2/keymaps/big_space/keymap.c
@@ -0,0 +1,81 @@
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
66
67#ifdef COMBO_ENABLE
68const uint16_t PROGMEM combo_bspc[] = {KC_O, KC_P, COMBO_END};
69const uint16_t PROGMEM combo_ent[] = {KC_K, KC_L, COMBO_END};
70const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END};
71const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END};
72const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END};
73
74combo_t key_combos[COMBO_COUNT] = {
75 [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC),
76 [COMBO_ENT] = COMBO(combo_ent,KC_ENT),
77 [COMBO_TAB] = COMBO(combo_tab,KC_TAB),
78 [COMBO_ESC] = COMBO(combo_esc,KC_ESC),
79 [COMBO_DEL] = COMBO(combo_del,KC_DEL)
80};
81#endif