aboutsummaryrefslogtreecommitdiff
path: root/keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c')
-rw-r--r--keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c186
1 files changed, 186 insertions, 0 deletions
diff --git a/keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c b/keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c
new file mode 100644
index 000000000..716ff19ab
--- /dev/null
+++ b/keyboards/converter/usb_usb/keymaps/chriskopher/keymap.c
@@ -0,0 +1,186 @@
1/* Copyright 2020 Christopher Ko <[email protected]>
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 "shared_enum.h"
18
19#include QMK_KEYBOARD_H
20
21// clang-format off
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23 /* Modified Qwerty for chriskopher: base default layer
24 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
25 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
26 * `---' `---------------' `---------------' `---------------' `-----------'
27 * ,-----------------------------------------------------------. ,-----------. ,---------------.
28 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \ | |Ins|Hom|PgU| |NmL| /| *| -|
29 * |-----------------------------------------------------------| |-----------| |---------------|
30 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bsp| |Del|End|PgD| | 7| 8| 9| |
31 * |-----------------------------------------------------------| `-----------' |-----------| |
32 * |Ctl/Esc| A| S| D| F| G| H| J| K| L|;/:| ' | Return| | 4| 5| 6| +|
33 * |-----------------------------------------------------------| ,---. |---------------|
34 * |Shift/( |Dev/Z| X| C| V| B| N| M| ,| .| /| Shift/)| | ↑ | | 1| 2| 3| |
35 * |-----------------------------------------------------------| ,-----------. |-----------| |
36 * |Meh/CapsL|Gui|Alt| Space |Alt|Adjust/Gui|App| Ctl| | ← | ↓ | → | | 0| .|Ent|
37 * `-----------------------------------------------------------' `-----------' `---------------'
38 */
39 [_CKO] = LAYOUT_ansi(
40 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
41 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_INS, KC_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
42 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9,
43 LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, TD(SCLN_CLN), KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
44 TD(ESPC_L), LT(_DEV,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, TD(ESPC_R), KC_UP, KC_P1, KC_P2, KC_P3,
45 MEH_T(KC_CAPS), KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LT(_ADJUST,KC_RGUI), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
46 ),
47
48 /* Regular Qwerty: default layer
49 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
50 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
51 * `---' `---------------' `---------------' `---------------' `-----------'
52 * ,-----------------------------------------------------------. ,-----------. ,---------------.
53 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
54 * |-----------------------------------------------------------| |-----------| |---------------|
55 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| |
56 * |-----------------------------------------------------------| `-----------' |-----------| |
57 * |CapsL | A| S| D| F| G| H| J| K| L| ;| '| Return| | 4| 5| 6| +|
58 * |-----------------------------------------------------------| ,---. |---------------|
59 * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | | ↑ | | 1| 2| 3| |
60 * |-----------------------------------------------------------| ,-----------. |-----------| |
61 * |Ctl|Gui|Alt| Space |Alt|Adjust/Gui|App|Ctl| | ← | ↓ | → | | 0| .|Ent|
62 * `-----------------------------------------------------------' `-----------' `---------------'
63 */
64 [_QWERTY] = LAYOUT_ansi(
65 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
66 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
67 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9,
68 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
69 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,
70 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LT(_ADJUST,KC_RGUI), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
71 ),
72
73 /* SuperDuper
74 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
75 * | | | | | | | | | | | | | | | | | | | | |
76 * `---' `---------------' `---------------' `---------------' `-----------'
77 * ,-----------------------------------------------------------. ,-----------. ,---------------.
78 * | | | | | | | | | | | | | | | | | | | | | | | |
79 * |-----------------------------------------------------------| |-----------| |---------------|
80 * | | | | | | | |1T |T← |T→ |9T | | | | | | | | | | | | |
81 * |-----------------------------------------------------------| `-----------' |-----------| |
82 * | |Alt|[SuperDuper]|Bksp|Ctl| ← | ↓ | ↑ | → |Del| | | | | | | |
83 * |-----------------------------------------------------------| ,---. |---------------|
84 * | | | | | | | | | | |ToggleSD| | | | | | | | |
85 * |-----------------------------------------------------------| ,-----------. |-----------| |
86 * | | | | Shift | | | | | | | | | | | | |
87 * `-----------------------------------------------------------' `-----------' `---------------'
88 */
89 [_SUPERDUPER] = LAYOUT_ansi(
90 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
91 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
92 ______, ______, ______, ______, ______, ______, ______, C(KC_1), C(S(KC_TAB)), C(KC_TAB), C(KC_9), ______, ______, ______, ______, ______, ______, ______, ______, ______,
93 ______, KC_LALT, ______, ______, KC_BSPC, KC_LCTL, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL, ______, ______, ______, ______, ______, ______,
94 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, TG(_SUPERDUPER), ______, ______, ______, ______, ______,
95 ______, ______, ______, KC_LSFT, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
96 ),
97
98 /* Dev
99 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
100 * | | | | | | | | | | | | | | | | | | | | |
101 * `---' `---------------' `---------------' `---------------' `-----------'
102 * ,-----------------------------------------------------------. ,-----------. ,---------------.
103 * | | | | | | | | | | | | | | | | | | | | | | | |
104 * |-----------------------------------------------------------| |-----------| |---------------|
105 * | | | | | | | | - | + | ( | ) | | | | | | | | | | | | |
106 * |-----------------------------------------------------------| `-----------' |-----------| |
107 * | | | | | | | _ | [ | ] | { | } | | | | | | | |
108 * |-----------------------------------------------------------| ,---. |---------------|
109 * | | | | | | | = | | | < | > | ? | | | | | | | | |
110 * |-----------------------------------------------------------| ,-----------. |-----------| |
111 * | | | | | | | | | | | | | | | | |
112 * `-----------------------------------------------------------' `-----------' `---------------'
113 */
114 [_DEV] = LAYOUT_ansi(
115 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
116 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
117 ______, ______, ______, ______, ______, ______, ______, KC_MINS, S(KC_EQL), S(KC_9), S(KC_0), ______, ______, ______, ______, ______, ______, ______, ______, ______,
118 ______, ______, ______, ______, ______, ______, S(KC_MINS), KC_LBRC, KC_RBRC, S(KC_LBRC), S(KC_RBRC), ______, ______, ______, ______, ______, ______,
119 ______, ______, ______, ______, ______, ______, KC_EQL, S(KC_BSLASH), S(KC_COMM), S(KC_DOT), S(KC_SLSH), ______, ______, ______, ______, ______,
120 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
121 ),
122
123 /* Adjust
124 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
125 * | | | | | | | | | | | | | | | | | | | | |
126 * `---' `---------------' `---------------' `---------------' `-----------'
127 * ,-----------------------------------------------------------. ,--------------. ,---------------.
128 * | | | | | | | | | | | | | | | |Play|Next|VolU| | | | | |
129 * |-----------------------------------------------------------| |--------------| |---------------|
130 * | |QWERTY| | | | | | | | | | | | | |Stop|Prev|VolD| | | | | |
131 * |-----------------------------------------------------------| `--------------' |-----------| |
132 * | | | | | | | | | | | | | | | | | | |
133 * |-----------------------------------------------------------| ,---. |---------------|
134 * | | | |CKO| | | |Play|Mute|VolD|VolU| SD| | | | | | | | |
135 * |-----------------------------------------------------------| ,-----------. |-----------| |
136 * | | | | | | | | | | | | | | | | |
137 * `-----------------------------------------------------------' `-----------' `---------------'
138 */
139 [_ADJUST] = LAYOUT_ansi(
140 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
141 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MPLY, KC_MNXT, KC_VOLU, ______, ______, ______, ______,
142 ______, DF(_QWERTY), ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_MSTP, KC_MPRV, KC_VOLD, ______, ______, ______,
143 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
144 ______, ______, ______, DF(_CKO), ______, ______, KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, TG(_SUPERDUPER), ______, ______, ______, ______, ______,
145 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
146 )
147
148/* Empty layout for future reference
149 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
150 * | | | | | | | | | | | | | | | | | | | | |
151 * `---' `---------------' `---------------' `---------------' `-----------'
152 * ,-----------------------------------------------------------. ,-----------. ,---------------.
153 * | | | | | | | | | | | | | | | | | | | | | | | |
154 * |-----------------------------------------------------------| |-----------| |---------------|
155 * | | | | | | | | | | | | | | | | | | | | | | | |
156 * |-----------------------------------------------------------| `-----------' |-----------| |
157 * | | | | | | | | | | | | | | | | | | |
158 * |-----------------------------------------------------------| ,---. |---------------|
159 * | | | | | | | | | | | | | | | | | | | |
160 * |-----------------------------------------------------------| ,-----------. |-----------| |
161 * | | | | | | | | | | | | | | | | |
162 * `-----------------------------------------------------------' `-----------' `---------------'
163 */
164 /*
165 * [_EMPTY] = LAYOUT_ansi(
166 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
167 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
168 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
169 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
170 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______,
171 * ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______
172 * ),
173 */
174};
175// clang-format on
176
177// Configure ignore mod tap interrupt per key
178bool get_ignore_mod_tap_interrupt(uint16_t keycode, keyrecord_t *record) {
179 switch (keycode) {
180 // I don't like how mod tap interrupt feels with these keys specifically when I'm typing
181 case LCTL_T(KC_ESC):
182 return false;
183 default:
184 return true;
185 }
186}