aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/drashna.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/drashna.h')
-rw-r--r--users/drashna/drashna.h38
1 files changed, 30 insertions, 8 deletions
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h
index f50bd3106..8d32a5f98 100644
--- a/users/drashna/drashna.h
+++ b/users/drashna/drashna.h
@@ -125,38 +125,55 @@ enum {
125 TD_D3_3, 125 TD_D3_3,
126 TD_D3_4 126 TD_D3_4
127}; 127};
128#endif 128#endif // TAP_DANCE_ENABLE
129
129 130
131// Custom Keycodes for Diablo 3 layer
132// But since TD() doesn't work when tapdance is disabled
133// We use custom codes here, so we can substituet the right stuff
130#ifdef TAP_DANCE_ENABLE 134#ifdef TAP_DANCE_ENABLE
131#define KC_D3_1 TD(TD_D3_1) 135#define KC_D3_1 TD(TD_D3_1)
132#define KC_D3_2 TD(TD_D3_2) 136#define KC_D3_2 TD(TD_D3_2)
133#define KC_D3_3 TD(TD_D3_3) 137#define KC_D3_3 TD(TD_D3_3)
134#define KC_D3_4 TD(TD_D3_4) 138#define KC_D3_4 TD(TD_D3_4)
135#else 139#else // TAP_DANCE_ENABLE
136#define KC_D3_1 KC_1 140#define KC_D3_1 KC_1
137#define KC_D3_2 KC_2 141#define KC_D3_2 KC_2
138#define KC_D3_3 KC_3 142#define KC_D3_3 KC_3
139#define KC_D3_4 KC_4 143#define KC_D3_4 KC_4
140#endif 144#endif // TAP_DANCE_ENABLE
145
146// OSM keycodes, to keep things clean and easy to change
147#define KC_MLSF OSM(MOD_LSFT)
148#define KC_MRSF OSM(MOD_RSFT)
149#define ONESHOT_TIMEOUT 3000
141 150
142#define QMK_KEYS_PER_SCAN 8 151#define QMK_KEYS_PER_SCAN 8
143 152
144#ifdef RGBLIGHT_ENABLE 153#ifdef RGBLIGHT_ENABLE
145#define RGBLIGHT_SLEEP 154#define RGBLIGHT_SLEEP
146#endif 155#endif // RGBLIGHT_ENABLE
147 156
148#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.) 157// this makes it possible to do rolling combos (zx) with keys that
158// convert to other keys on hold (z becomes ctrl when you hold it,
159// and when this option isn't enabled, z rapidly followed by x
160// actually sends Ctrl-x. That's bad.)
161#define IGNORE_MOD_TAP_INTERRUPT
149 162
163// Disable action_get_macro and fn_actions, since we don't use these
164// and it saves on space in the firmware.
150#define NO_ACTION_MACRO 165#define NO_ACTION_MACRO
151#define NO_ACTION_FUNCTION 166#define NO_ACTION_FUNCTION
152 167
168// If we're still using the official Faux Clicky feature, substituet codes
169// so that we don't have any unused/blank keys.
153#ifdef FAUXCLICKY_ENABLE 170#ifdef FAUXCLICKY_ENABLE
154#define AUD_ON FC_ON 171#define AUD_ON FC_ON
155#define AUD_OFF FC_OFF 172#define AUD_OFF FC_OFF
156#else 173#else // FAUXCLICKY_ENABLE
157#define AUD_ON AU_ON 174#define AUD_ON AU_ON
158#define AUD_OFF AU_OFF 175#define AUD_OFF AU_OFF
159#endif 176#endif // FAUXCLICKY_ENABLE
160 177
161 178
162 179
@@ -166,12 +183,17 @@ enum {
166#define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__) 183#define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__)
167#define KEYMAP_wrapper(...) KEYMAP(__VA_ARGS__) 184#define KEYMAP_wrapper(...) KEYMAP(__VA_ARGS__)
168 185
186
169// Blocks for each of the four major keyboard layouts 187// Blocks for each of the four major keyboard layouts
170// Organized so we can quickly adapt and modify all of them 188// Organized so we can quickly adapt and modify all of them
171// at once, rather than for each keyboard, one at a time. 189// at once, rather than for each keyboard, one at a time.
172// And this allows wor much cleaner blocks in the keymaps. 190// And this allows wor much cleaner blocks in the keymaps.
173// For instance Tap/Hold for Control on all of the layouts 191// For instance Tap/Hold for Control on all of the layouts
174 192
193// NOTE: These are all the same length. If you do a search/replace
194// then you need to add/remove underscores to keep the
195// lengths consistent.
196
175#define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T 197#define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
176#define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G 198#define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
177#define _________________QWERTY_L3_________________ CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B 199#define _________________QWERTY_L3_________________ CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B
@@ -213,7 +235,7 @@ enum {
213// this allows us to quickly modify the bottom row for all of the layouts 235// this allows us to quickly modify the bottom row for all of the layouts
214// so we don't have to alter it 4 times and hope that we haven't missed 236// so we don't have to alter it 4 times and hope that we haven't missed
215// anything 237// anything
216#define ___________ERGODOX_BOTTOM_LEFT_____________ KC_QUOT, KC_LGUI, KC_LBRC, KC_RBRC 238#define ___________ERGODOX_BOTTOM_LEFT_____________ KC_QUOT, KC_MEH, KC_LBRC, KC_RBRC
217#define ___________ERGODOX_BOTTOM_RIGHT____________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT 239#define ___________ERGODOX_BOTTOM_RIGHT____________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
218 240
219 241