]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/tennie/keymaps/default/keymap.c
[Keyboard] Add handwired keyboard "Tennie" (#5507)
[qmk_firmware.git] / keyboards / handwired / tennie / keymaps / default / keymap.c
1 /* Copyright 2018 Jack H.
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 #include QMK_KEYBOARD_H
17
18 #define TAPPING_TOGGLE 2
19
20
21 // Layer names
22 #define base  0
23 #define shrek 1
24 #define ogre  2
25 #define tcp   3
26
27 // Layer Switches
28 #define KC_SHRK TT(shrek)
29 #define KC_OGRE TT(ogre)
30 #define KC_TCP TT(tcp)
31
32
33
34 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
35   [base] = LAYOUT(
36   //         ┌────────┬────────┬────────┐
37
38                 KC_DEL,  KC_SPC,  KC_ENT,
39
40   //    ├────────┼────────┼────────┼────────┼
41
42           KC_LEFT, KC_DOWN, KC_UP  , KC_RGHT,
43
44   //    ├────────┼────────┼────────┼────────┼
45
46                KC_SHRK, KC_OGRE, KC_TCP
47
48   //         └────────┴────────┴────────┘
49   ),
50   [shrek] = LAYOUT(
51   //         ┌────────┬────────┬────────┐
52
53                KC_MPRV, KC_MPLY, KC_MNXT,
54
55   //    ├────────┼────────┼────────┼────────┼
56
57           KC_BRID, KC_VOLD, KC_VOLU, KC_BRIU,
58
59   //    ├────────┼────────┼────────┼────────┼
60
61               _______, _______, _______
62
63   //         └────────┴────────┴────────┘
64   ),
65   [ogre] = LAYOUT(
66   //         ┌────────┬────────┬────────┐
67
68                RGB_MOD, RGB_TOG, RGB_RMOD,
69
70   //    ├────────┼────────┼────────┼────────┼
71
72            KC_F13,  KC_F14,  KC_F15,  KC_F16,
73
74   //    ├────────┼────────┼────────┼────────┼
75
76                _______, _______, _______
77
78   //         └────────┴────────┴────────┘
79   ),
80   [tcp] = LAYOUT(
81   //         ┌────────┬────────┬────────┐
82
83                KC_WBAK, KC_WREF, KC_WFWD,
84
85   //    ├────────┼────────┼────────┼────────┼
86
87           XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX,
88
89   //    ├────────┼────────┼────────┼────────┼
90
91               _______, _______, _______
92
93   //         └────────┴────────┴────────┘
94   ),
95 };