aboutsummaryrefslogtreecommitdiff
path: root/keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c')
-rw-r--r--keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c229
1 files changed, 229 insertions, 0 deletions
diff --git a/keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c b/keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c
new file mode 100644
index 000000000..baa266e63
--- /dev/null
+++ b/keyboards/thevankeyboards/minivan/keymaps/budi/keymap.c
@@ -0,0 +1,229 @@
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 _DV 0
10#define _NM 1
11#define _NV 2
12#define _MN 3
13#define _FN 4
14
15// Requires KC_TRNS/_______ for the trigger key in the destination layer
16#define NM_SP LT(_NM, KC_SPC)
17#define NV_SP LT(_NV, KC_SPC)
18#define MN_EN LT(_MN, KC_ENT)
19#define FN_EX LT(_FN, KC_ESC)
20
21// Curly braces have their own keys. These are defined to make them not mess up
22// the grid in layer 2.
23#define L_CURB LSFT(KC_LBRC)
24#define R_CURB LSFT(KC_RBRC)
25
26// Hypers
27#define HYP0 HYPR(KC_0)
28#define HYP1 HYPR(KC_1)
29#define HYP2 HYPR(KC_2)
30#define HYP3 HYPR(KC_3)
31#define HYP4 HYPR(KC_4)
32#define HYP5 HYPR(KC_5)
33#define HYP6 HYPR(KC_6)
34#define HYP7 HYPR(KC_7)
35#define HYP8 HYPR(KC_8)
36#define HYP9 HYPR(KC_9)
37
38// MEH
39#define MEH0 MEH(KC_0)
40#define MEH1 MEH(KC_1)
41#define MEH2 MEH(KC_2)
42#define MEH3 MEH(KC_3)
43#define MEH4 MEH(KC_4)
44#define MEH5 MEH(KC_5)
45#define MEH6 MEH(KC_6)
46#define MEH7 MEH(KC_7)
47#define MEH8 MEH(KC_8)
48#define MEH9 MEH(KC_9)
49
50// CAG
51#define CAG0 LCAG(KC_0)
52#define CAG1 LCAG(KC_1)
53#define CAG2 LCAG(KC_2)
54#define CAG3 LCAG(KC_3)
55#define CAG4 LCAG(KC_4)
56#define CAG5 LCAG(KC_5)
57#define CAG6 LCAG(KC_6)
58#define CAG7 LCAG(KC_7)
59#define CAG8 LCAG(KC_8)
60#define CAG9 LCAG(KC_9)
61
62// ALTS
63#define ALT0 LALT(KC_0)
64#define ALT1 LALT(KC_1)
65#define ALT2 LALT(KC_2)
66#define ALT3 LALT(KC_3)
67#define ALT4 LALT(KC_4)
68#define ALT5 LALT(KC_5)
69#define ALT6 LALT(KC_6)
70#define ALT7 LALT(KC_7)
71#define ALT8 LALT(KC_8)
72#define ALT9 LALT(KC_9)
73#define ALTX LALT(KC_GRV)
74#define ALTL LALT(KC_LEFT)
75#define ALTR LALT(KC_RIGHT)
76#define ALTESC LALT(KC_ESC)
77#define ALTEQL LALT(KC_EQL)
78#define ALTMIN LALT(KC_MINS)
79
80// BACK AND FORWARD
81#define XBACK LGUI(LALT(KC_LEFT))
82#define XFFWD LGUI(LALT(KC_RIGHT))
83
84// Fillers to make layering more clear
85#define _______ KC_TRNS
86#define xxxxxxx KC_NO
87
88enum custom_keycodes {
89 PLACEHOLDER = SAFE_RANGE, // can always be here
90 SWTCH
91};
92
93const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
94
95
96/* DVORAK
97 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
98 * | TAB | ' | , | . | P | Y | F | G | C | R | L | BACKSPACE |
99 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
100 * | LCTL | A | O | E | U | I | D | H | T | N | S | MN/ENTER |
101 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
102 * | LSHFT | ; | Q | J | K | X | B | M | W | V | Z | RSHFT |
103 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
104 * | FN EX | GUI | ALT | NM / SPACE | NV / SPACE | RALT | - | = | ESC |
105 * `---------+----------+----------+-----^^^------+----^^^-----+-------+-------+-------+-------'
106 */
107 [_DV] = LAYOUT_arrow(
108 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
109 KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, MN_EN,
110 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT,
111 FN_EX, KC_LGUI, KC_LALT, NM_SP, NV_SP, KC_RALT, KC_MINS, KC_EQL, KC_ESC
112 ),
113
114
115
116/* NUMBERS
117 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
118 * | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | DELETE |
119 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
120 * | LCTL | ! | @ | [ | { | ( | ) | } | ] | | | ? | ENTER |
121 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
122 * | LSFT | ` | ~ | # | $ | % | ^ | & | * | _ | + | = |
123 * | LSFT | ` | ~ | # | $ | % | ^ | & | * | _ | + | / |
124 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
125 * | | GUI | LALT |-----TRNS-----| SPACE | RALT | - | = | \ |
126 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
127 */
128 [_NM] = LAYOUT_arrow(
129 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
130 _______, KC_EXLM, KC_AT, KC_LBRC, L_CURB, KC_LPRN, KC_RPRN, R_CURB, KC_RBRC, KC_PIPE, KC_QUES, _______,
131 _______, KC_GRV, KC_TILD, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_UNDS, KC_PLUS, KC_SLSH,
132 _______, _______, _______, _______, KC_SPC, _______, KC_MINS, KC_EQL, KC_BSLS
133 ),
134
135
136
137/* NAVIGATION
138 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
139 * | ESC | MWU | MWL | MU | MWR | MPRV | MNXT | HOME | UP | END | PGUP | DELETE |
140 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
141 * | LCTL | MWD | ML | MD | MR | MRWD | MFFD | LEFT | DOWN | RIGHT| PGDN | MB2 |
142 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
143 * | LSFT | HYP1 | HYP2 | HYP3 | HYP4 | HYP5 | HYP6 | HYP7 | HYP8 | HYP9 | HYP0 | VOLUP |
144 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
145 * | | GUI | LALT | MB1 |----TRNS----| MUTE | PLAY | STOP | VOLDN |
146 * `---------+----------+----------+-----^^^------+----^^^-----+-------+-------+-------+-------'
147 */
148 [_NV] = LAYOUT_arrow(
149 KC_ESC, KC_WH_U, KC_WH_L, KC_MS_U, KC_WH_R, KC_MPRV, KC_MNXT, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_DEL,
150 _______, KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_MRWD, KC_MFFD, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_BTN2,
151 _______, HYP1, HYP2, HYP3, HYP4, HYP5, HYP6, HYP7, HYP8, HYP9, HYP0, KC_VOLU,
152 _______, _______, _______, KC_BTN1, _______, KC_MUTE, KC_MPLY, KC_MSTP, KC_VOLD
153 ),
154
155
156
157/* MODIFIED NUMBERS
158 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
159 * | ALTESC | CAG1 | CAG2 | CAG3 | CAG4 | CAG5 | CAG6 | CAG7 | CAG8 | CAG9 | CAG0 | SWTCH |
160 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
161 * | ALT ` | ALT1 | ALT2 | ALT3 | ALT4 | ALT5 | ALT6 | ALT7 | ALT8 | ALT9 | ALT0 |----TRNS---|
162 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
163 * | ALT = | MEH1 | MEH2 | MEH3 | MEH4 | MEH5 | MEH6 | MEH7 | MEH8 | MEH9 | MEH0 | |
164 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
165 * | ALT - | | XBACK | ALT LEFT | ALT RIGHT | XFFWD | | | |
166 * `---------+----------+----------+-----^^^------+----^^^-----+-------+-------+-------+-------'
167 */
168 [_MN] = LAYOUT_arrow(
169 ALTESC, CAG1, CAG2, CAG3, CAG4, CAG5, CAG6, CAG7, CAG8, CAG9, CAG0, SWTCH,
170 ALTX, ALT1, ALT2, ALT3, ALT4, ALT5, ALT6, ALT7, ALT8, ALT9, ALT0, _______,
171 ALTEQL, MEH1, MEH2, MEH3, MEH4, MEH5, MEH6, MEH7, MEH8, MEH9, MEH0, xxxxxxx,
172 ALTMIN, xxxxxxx, XBACK, ALTL, ALTR, XFFWD, xxxxxxx, xxxxxxx, xxxxxxx
173 ),
174
175
176
177/* FUNCTIONS
178 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
179 * | ESC | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | DELETE |
180 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
181 * | LCTL | F11 | F12 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | |
182 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
183 * | LSFT | | | | | | | | | | | |
184 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
185 * |---TRNS---| CAPS | LALT | | SWTCH | RALT | | RESET |--TRNS-|
186 * `---------+----------+----------+-----^^^------+----^^^-----+-------+-------+-------+-------'
187 */
188 [_FN] = LAYOUT_arrow(
189 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
190 _______, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, xxxxxxx,
191 _______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC_PWR, KC_SLEP, KC_WAKE, xxxxxxx, xxxxxxx, xxxxxxx,
192 _______, KC_CAPS, _______, xxxxxxx, SWTCH, KC_RALT, xxxxxxx, RESET, _______
193 )
194
195
196
197/* Transparent placeholder for more layers
198 * ,---------+------+------+------+------+------+------+------+------+------+------+------------.
199 * | | | | | | | | | | | | |
200 * |---------`------`------`------`------`------`------`------`------`------`------`------------|
201 * | | | | | | | | | | | | |
202 * |----------`------`------`------`------`------`------`------`------`------`------`-----------|
203 * | | | | | | | | | | | | |
204 * |-----------`------`------`------`------`------`-------`------`------`------`------`---------|
205 * | | | | | | | | | |
206 * `---------+----------+----------+-----^^^------+----^^^-----+-------+-------+-------+-------'
207 */
208// [_TR] = LAYOUT_arrow(
209// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
210// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
211// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
212// _______, _______, _______, _______, _______, _______, _______, _______, _______
213// )
214};
215
216bool process_record_user(uint16_t keycode, keyrecord_t *record) {
217 if (record->event.pressed) {
218 switch (keycode) {
219 case SWTCH:
220 SEND_STRING(SS_DOWN(X_LGUI));
221 SEND_STRING(SS_DOWN(X_LSHIFT));
222 SEND_STRING(SS_TAP(X_ENTER));
223 SEND_STRING(SS_UP(X_LSHIFT));
224 SEND_STRING(SS_UP(X_LGUI));
225 return false;
226 }
227 }
228 return true;
229}