aboutsummaryrefslogtreecommitdiff
path: root/keyboards/atreus/keymaps/replicaJunction/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/atreus/keymaps/replicaJunction/keymap.c')
-rw-r--r--keyboards/atreus/keymaps/replicaJunction/keymap.c283
1 files changed, 141 insertions, 142 deletions
diff --git a/keyboards/atreus/keymaps/replicaJunction/keymap.c b/keyboards/atreus/keymaps/replicaJunction/keymap.c
index d39a184d4..2d8f0d70f 100644
--- a/keyboards/atreus/keymaps/replicaJunction/keymap.c
+++ b/keyboards/atreus/keymaps/replicaJunction/keymap.c
@@ -15,7 +15,7 @@
15 * here: https://colemakmods.github.io/mod-dh/ 15 * here: https://colemakmods.github.io/mod-dh/
16 */ 16 */
17 17
18#include "atreus.h" 18#include QMK_KEYBOARD_H
19 19
20// Each layer gets a name for readability, which is then used in the keymap matrix below. 20// Each layer gets a name for readability, which is then used in the keymap matrix below.
21// The underscores don't mean anything - you can have a layer called STUFF or any other name. 21// The underscores don't mean anything - you can have a layer called STUFF or any other name.
@@ -47,136 +47,136 @@
47; // This doesn't do anything. It's just for VSCode because its syntax highlighting is weird for the above #define statements. 47; // This doesn't do anything. It's just for VSCode because its syntax highlighting is weird for the above #define statements.
48 48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 50 /*
51/* 51 * Colemak-ModDH
52 * Colemak-ModDH 52 *
53 * 53 * ,----------------------------------. ,----------------------------------.
54 * ,----------------------------------. ,----------------------------------. 54 * | Q | W | F | P | B | | J | L | U | Y | ; |
55 * | Q | W | F | P | B | | J | L | U | Y | ; | 55 * +------+------+------+------+------| +------+------+------+------+------|
56 * +------+------+------+------+------| +------+------+------+------+------| 56 * | A | R | S | T | G | | M | N | E | I | O |
57 * | A | R | S | T | G | | M | N | E | I | O | 57 * +------+------+------+------+------| +------+------+------+------+------|
58 * +------+------+------+------+------| +------+------+------+------+------| 58 * |Z Shft| X | C | D | V | ,------. ,------. | K | H | , | . |/ Shft|
59 * |Z Shft| X | C | D | V | ,------. ,------. | K | H | , | . |/ Shft| 59 * +------+------+------+------+------| | Ctrl | | Alt | +------+------+------+------+------|
60 * +------+------+------+------+------| | Ctrl | | Alt | +------+------+------+------+------| 60 * | Esc | Gui | Tab | _FN | Bksp | | Del | | Enter| |Sp/_NU| _EX | - | ' | = |
61 * | Esc | Gui | Tab | _FN | Bksp | | Del | | Enter| |Sp/_NU| _EX | - | ' | = | 61 * `----------------------------------' `------' `------' `----------------------------------'
62 * `----------------------------------' `------' `------' `----------------------------------' 62 *
63 * 63 */
64 */ 64 [_CO] = LAYOUT(
65[_CO] = KEYMAP( 65 KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
66 KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, 66 KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O,
67 KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, 67 SFT_T(KC_Z), KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, SFT_T(KC_SLSH),
68 SFT_T(KC_Z), KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, SFT_T(KC_SLSH), 68 KC_ESC, KC_LGUI, KC_TAB, MO(_FN), KC_BSPC, CTL_T(KC_DEL), ALT_T(KC_ENT), LT(_NU, KC_SPC), MO(_EX), KC_MINS, KC_QUOT, KC_EQL
69 KC_ESC, KC_LGUI, KC_TAB, MO(_FN), KC_BSPC, CTL_T(KC_DEL), ALT_T(KC_ENT), LT(_NU, KC_SPC), MO(_EX), KC_MINS, KC_QUOT, KC_EQL 69 ),
70), 70
71 71 /*
72/* 72 * QWERTY
73 * QWERTY 73 *
74 * 74 * ,----------------------------------. ,----------------------------------.
75 * ,----------------------------------. ,----------------------------------. 75 * | Q | W | E | R | T | | Y | U | I | O | P |
76 * | Q | W | E | R | T | | Y | U | I | O | P | 76 * +------+------+------+------+------| +------+------+------+------+------|
77 * +------+------+------+------+------| +------+------+------+------+------| 77 * | A | S | D | F | G | | H | J | K | L | ; |
78 * | A | S | D | F | G | | H | J | K | L | ; | 78 * +------+------+------+------+------| +------+------+------+------+------|
79 * +------+------+------+------+------| +------+------+------+------+------| 79 * |Z Shft| X | C | V | B | ,------. ,------. | N | M | , | . |/ Shft|
80 * |Z Shft| X | C | V | B | ,------. ,------. | N | M | , | . |/ Shft| 80 * +------+------+------+------+------| | Ctrl | | Alt | +------+------+------+------+------|
81 * +------+------+------+------+------| | Ctrl | | Alt | +------+------+------+------+------| 81 * | Esc | Gui | Tab | _FN | Bksp | | Del | | Enter| |Sp/_NU| _EX | - | ' | = |
82 * | Esc | Gui | Tab | _FN | Bksp | | Del | | Enter| |Sp/_NU| _EX | - | ' | = | 82 * `----------------------------------' `------' `------' `----------------------------------'
83 * `----------------------------------' `------' `------' `----------------------------------' 83 *
84 * 84 */
85 */ 85 [_QW] = LAYOUT( /* Qwerty */
86[_QW] = KEYMAP( /* Qwerty */ 86 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
87 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, 87 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
88 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, 88 SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH),
89 SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH), 89 KC_ESC, KC_LGUI, KC_TAB, MO(_FN), KC_BSPC, CTL_T(KC_DEL), ALT_T(KC_ENT), LT(_NU, KC_SPC), MO(_EX), KC_MINS, KC_QUOT, KC_EQL
90 KC_ESC, KC_LGUI, KC_TAB, MO(_FN), KC_BSPC, CTL_T(KC_DEL), ALT_T(KC_ENT), LT(_NU, KC_SPC), MO(_EX), KC_MINS, KC_QUOT, KC_EQL 90 ),
91), 91
92 92 /*
93/* 93 * Extend
94 * Extend 94 *
95 * 95 * Ctrl+` is a keyboard shortcut for the program ConEmu, which brings up a dropdown console window.
96 * Ctrl+` is a keyboard shortcut for the program ConEmu, which brings up a dropdown console window. 96 *
97 * 97 * Also note that some dual-role keys are overridden here with their modifiers
98 * Also note that some dual-role keys are overridden here with their modifiers 98 *
99 * 99 * ,----------------------------------. ,----------------------------------.
100 * ,----------------------------------. ,----------------------------------. 100 * | | | | |Ctrl `| | PgUp | Home | Up | End | Del |
101 * | | | | |Ctrl `| | PgUp | Home | Up | End | Del | 101 * +------+------+------+------+------| +------+------+------+------+------|
102 * +------+------+------+------+------| +------+------+------+------+------| 102 * | Gui | Shift| Alt | Ctrl | | | PgDn | Left | Down | Right| Bksp |
103 * | Gui | Shift| Alt | Ctrl | | | PgDn | Left | Down | Right| Bksp | 103 * +------+------+------+------+------| +------+------+------+------+------|
104 * +------+------+------+------+------| +------+------+------+------+------| 104 * | Shift| Cut | Copy | | Paste| ,------. ,------. | | ^Tab | Tab | |Insert|
105 * | Shift| Cut | Copy | | Paste| ,------. ,------. | | ^Tab | Tab | |Insert| 105 * +------+------+------+------+------| | Del | | Enter| +------+------+------+------+------|
106 * +------+------+------+------+------| | Del | | Enter| +------+------+------+------+------| 106 * | | | | | | | | | | | Space|XXXXXX| | |PrntSc|
107 * | | | | | | | | | | | Space|XXXXXX| | |PrntSc| 107 * `----------------------------------' `------' `------' `----------------------------------'
108 * `----------------------------------' `------' `------' `----------------------------------' 108 *
109 * 109 */
110 */ 110 [_EX] = LAYOUT( /* Extend */
111[_EX] = KEYMAP( /* Extend */ 111 _______, _______, _______, _______, LCTL(KC_GRV), KC_PGUP, KC_HOME, KC_UP, KC_END, KC_DEL,
112 _______, _______, _______, _______, LCTL(KC_GRV), KC_PGUP, KC_HOME, KC_UP, KC_END, KC_DEL, 112 KC_LGUI, KC_LSFT, KC_LALT, KC_LCTL, _______, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSPC,
113 KC_LGUI, KC_LSFT, KC_LALT, KC_LCTL, _______, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSPC, 113 KC_LSFT, KX_CUT, KX_COPY, _______, KX_PAST, _______, KCX_LST, KC_TAB, _______, KC_INS,
114 KC_LSFT, KX_CUT, KX_COPY, _______, KX_PAST, _______, KCX_LST, KC_TAB, _______, KC_INS, 114 _______, _______, _______, _______, _______, KC_DEL, KC_ENT, KC_SPC, _______, _______, _______, KC_PSCR
115 _______, _______, _______, _______, _______, KC_DEL, KC_ENT, KC_SPC, _______, _______, _______, KC_PSCR 115 ),
116), 116
117 117 /*
118/* 118 * Numbers and symbols
119 * Numbers and symbols 119 *
120 * 120 * ,----------------------------------. ,----------------------------------.
121 * ,----------------------------------. ,----------------------------------. 121 * | ! | @ | { | } | & | | / | 7 | 8 | 9 | * |
122 * | ! | @ | { | } | & | | / | 7 | 8 | 9 | * | 122 * +------+------+------+------+------| +------+------+------+------+------|
123 * +------+------+------+------+------| +------+------+------+------+------| 123 * | # | $ | ( | ) | ~ | | | | 4 | 5 | 6 | - |
124 * | # | $ | ( | ) | ~ | | | | 4 | 5 | 6 | - | 124 * +------+------+------+------+------| +------+------+------+------+------|
125 * +------+------+------+------+------| +------+------+------+------+------| 125 * | % | ^ | [ | ] | ` | ,------. ,------. | \ | 1 | 2 | 3 | + |
126 * | % | ^ | [ | ] | ` | ,------. ,------. | \ | 1 | 2 | 3 | + | 126 * +------+------+------+------+------| | | | | +------+------+------+------+------|
127 * +------+------+------+------+------| | | | | +------+------+------+------+------| 127 * | | _GA | | | | | | | | |XXXXXX| 0 | . | = | |
128 * | | _GA | | | | | | | | |XXXXXX| 0 | . | = | | 128 * `----------------------------------' `------' `------' `----------------------------------'
129 * `----------------------------------' `------' `------' `----------------------------------' 129 *
130 * 130 */
131 */ 131 [_NU] = LAYOUT( /* Numbers and symbols */
132[_NU] = KEYMAP( /* Numbers and symbols */ 132 KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_AMPR, KC_SLSH, KC_7, KC_8, KC_9, KC_ASTR,
133 KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_AMPR, KC_SLSH, KC_7, KC_8, KC_9, KC_ASTR, 133 KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_TILD, KC_PIPE, KC_4, KC_5, KC_6, KC_MINS,
134 KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_TILD, KC_PIPE, KC_4, KC_5, KC_6, KC_MINS, 134 KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_GRV, KC_BSLS, KC_1, KC_2, KC_3, KC_PLUS,
135 KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_GRV, KC_BSLS, KC_1, KC_2, KC_3, KC_PLUS, 135 _______, TG(_GA), _______, _______, _______, _______, _______, _______, KC_0, KC_DOT, KC_EQL, _______
136 _______, TG(_GA), _______, _______, _______, _______, _______, _______, KC_0, KC_DOT, KC_EQL, _______ 136 ),
137), 137
138 138 /*
139/* 139 * Functions
140 * Functions 140 *
141 * 141 * ,----------------------------------. ,----------------------------------.
142 * ,----------------------------------. ,----------------------------------. 142 * | Caps | F9 | F10 | F11 | F12 | | _USER|Whl Up| MUp |Whl Dn| |
143 * | Caps | F9 | F10 | F11 | F12 | | _USER|Whl Up| MUp |Whl Dn| | 143 * +------+------+------+------+------| +------+------+------+------+------|
144 * +------+------+------+------+------| +------+------+------+------+------| 144 * | | F5 | F6 | F7 | F8 | | Vol ^| MLeft| MDown|MRight| |
145 * | | F5 | F6 | F7 | F8 | | Vol ^| MLeft| MDown|MRight| | 145 * +------+------+------+------+------| +------+------+------+------+------|
146 * +------+------+------+------+------| +------+------+------+------+------| 146 * | | F1 | F2 | F3 | F4 | ,------. ,------. | Vol v| | | | |
147 * | | F1 | F2 | F3 | F4 | ,------. ,------. | Vol v| | | | | 147 * +------+------+------+------+------| | | |RClick| +------+------+------+------+------|
148 * +------+------+------+------+------| | | |RClick| +------+------+------+------+------| 148 * | | | |XXXXXX| | | | | | |LClick|MClick| _CO | _GA | RESET|
149 * | | | |XXXXXX| | | | | | |LClick|MClick| _CO | _GA | RESET| 149 * `----------------------------------' `------' `------' `----------------------------------'
150 * `----------------------------------' `------' `------' `----------------------------------' 150 *
151 * 151 */
152 */ 152 [_FN] = LAYOUT( /* Functions */
153[_FN] = KEYMAP( /* Functions */ 153 KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, M(_USER),KC_WH_U, KC_MS_U, KC_WH_D, _______,
154 KC_CAPS, KC_F9, KC_F10, KC_F11, KC_F12, M(_USER),KC_WH_U, KC_MS_U, KC_WH_D, _______, 154 _______, KC_F5, KC_F6, KC_F7, KC_F8, KC_VOLU, KC_MS_L, KC_MS_D, KC_MS_R, _______,
155 _______, KC_F5, KC_F6, KC_F7, KC_F8, KC_VOLU, KC_MS_L, KC_MS_D, KC_MS_R, _______, 155 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_VOLD, _______, _______, _______, _______,
156 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_VOLD, _______, _______, _______, _______, 156 _______, _______, _______, _______, _______, _______, KC_BTN2, KC_BTN1, KC_BTN3, DF(_CO), DF(_QW), RESET
157 _______, _______, _______, _______, _______, _______, KC_BTN2, KC_BTN1, KC_BTN3, DF(_CO), DF(_QW), RESET 157 ),
158), 158
159 159 /*
160/* 160 * Gaming
161 * Gaming 161 *
162 * 162 * ,----------------------------------. ,----------------------------------.
163 * ,----------------------------------. ,----------------------------------. 163 * | | | | | | | |Whl Up| MUp |Whl Dn| |
164 * | | | | | | | |Whl Up| MUp |Whl Dn| | 164 * +------+------+------+------+------| +------+------+------+------+------|
165 * +------+------+------+------+------| +------+------+------+------+------| 165 * | | | | | | | | MLeft| MDown|MRight| |
166 * | | | | | | | | MLeft| MDown|MRight| | 166 * +------+------+------+------+------| +------+------+------+------+------|
167 * +------+------+------+------+------| +------+------+------+------+------| 167 * | Z | | | | | ,------. ,------. | | | | | |
168 * | Z | | | | | ,------. ,------. | | | | | | 168 * +------+------+------+------+------| | Bksp | |RClick| +------+------+------+------+------|
169 * +------+------+------+------+------| | Bksp | |RClick| +------+------+------+------+------| 169 * | | _GA | | Shift| Space| | | | | |LClick|MClick| | | |
170 * | | _GA | | Shift| Space| | | | | |LClick|MClick| | | | 170 * `----------------------------------' `------' `------' `----------------------------------'
171 * `----------------------------------' `------' `------' `----------------------------------' 171 *
172 * 172 */
173 */ 173 [_GA] = LAYOUT( /* Gaming */
174[_GA] = KEYMAP( /* Gaming */ 174 _______, _______, _______, _______, _______, _______, KC_WH_U, KC_MS_U, KC_WH_D, _______,
175 _______, _______, _______, _______, _______, _______, KC_WH_U, KC_MS_U, KC_WH_D, _______, 175 _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R, _______,
176 _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R, _______, 176 KC_Z, _______, _______, _______, _______, _______, _______, KC_MS_D, _______, _______,
177 KC_Z, _______, _______, _______, _______, _______, _______, KC_MS_D, _______, _______, 177 _______, TG(_GA), _______, KC_LSFT, KC_SPC, KC_BSPC, KC_BTN2, KC_BTN1, KC_BTN3, _______, _______, _______
178 _______, TG(_GA), _______, KC_LSFT, KC_SPC, KC_BSPC, KC_BTN2, KC_BTN1, KC_BTN3, _______, _______, _______ 178 )
179)}; 179};
180 180
181/* 181/*
182 * Template 182 * Template
@@ -197,17 +197,16 @@ const uint16_t PROGMEM fn_actions[] = {
197 197
198}; 198};
199 199
200const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) 200const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
201{
202 // MACRODOWN only works in this function 201 // MACRODOWN only works in this function
203 switch(id) { 202 switch(id) {
204 case _USER: 203 case _USER:
205 if (record->event.pressed) { 204 if (record->event.pressed) {
206 register_code(KC_RSFT); 205 register_code(KC_RSFT);
207 } else { 206 } else {
208 unregister_code(KC_RSFT); 207 unregister_code(KC_RSFT);
209 }
210 break;
211 } 208 }
212 return MACRO_NONE; 209 break;
210 }
211 return MACRO_NONE;
213}; 212};