diff options
Diffstat (limited to 'layouts/community/ergodox/drashna')
| -rw-r--r-- | layouts/community/ergodox/drashna/config.h | 2 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 21 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/rules.mk | 1 |
3 files changed, 18 insertions, 6 deletions
diff --git a/layouts/community/ergodox/drashna/config.h b/layouts/community/ergodox/drashna/config.h index 821710ed8..0ccf10c31 100644 --- a/layouts/community/ergodox/drashna/config.h +++ b/layouts/community/ergodox/drashna/config.h | |||
| @@ -14,3 +14,5 @@ | |||
| 14 | 14 | ||
| 15 | #undef DEBOUNCE | 15 | #undef DEBOUNCE |
| 16 | #define DEBOUNCE 15 | 16 | #define DEBOUNCE 15 |
| 17 | |||
| 18 | #define TAPPING_TERM_PER_KEY | ||
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c index 763b218f7..6ed4558e2 100644 --- a/layouts/community/ergodox/drashna/keymap.c +++ b/layouts/community/ergodox/drashna/keymap.c | |||
| @@ -23,8 +23,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | #ifndef UNICODE_ENABLE | 23 | #ifndef UNICODE_ENABLE |
| 24 | # define UC(x) KC_NO | 24 | # define UC(x) KC_NO |
| 25 | #endif | 25 | #endif |
| 26 | 26 | #ifdef RGBLIGHT_ENABLE | |
| 27 | extern userspace_config_t userspace_config; | 27 | extern rgblight_config_t rgblight_config; |
| 28 | #endif | ||
| 28 | 29 | ||
| 29 | enum more_custom_keycodes { KC_SWAP_NUM = NEW_SAFE_RANGE }; | 30 | enum more_custom_keycodes { KC_SWAP_NUM = NEW_SAFE_RANGE }; |
| 30 | 31 | ||
| @@ -40,7 +41,7 @@ bool skip_leds = false; | |||
| 40 | LAYOUT_ergodox_pretty_wrapper( \ | 41 | LAYOUT_ergodox_pretty_wrapper( \ |
| 41 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ | 42 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ |
| 42 | KC_TAB, K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \ | 43 | KC_TAB, K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \ |
| 43 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_QUOT, \ | 44 | KC_C1R3, ALT_T(K11), K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ |
| 44 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \ | 45 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \ |
| 45 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \ | 46 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \ |
| 46 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ | 47 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ |
| @@ -291,8 +292,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 291 | [_ADJUST] = LAYOUT_ergodox_pretty_wrapper( | 292 | [_ADJUST] = LAYOUT_ergodox_pretty_wrapper( |
| 292 | KC_MAKE, _______, _______, _______, _______, _______, _______, KC_NUKE, _________________ADJUST_R1_________________, KC_RST, | 293 | KC_MAKE, _______, _______, _______, _______, _______, _______, KC_NUKE, _________________ADJUST_R1_________________, KC_RST, |
| 293 | VRSN, _________________ADJUST_L1_________________, _______, _______, _______, _______, _______, _______, _______, EEP_RST, | 294 | VRSN, _________________ADJUST_L1_________________, _______, _______, _______, _______, _______, _______, _______, EEP_RST, |
| 294 | _______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, TG(_MODS), | 295 | _______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, RGB_IDL, |
| 295 | _______, _________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, KC_MPLY, | 296 | _______, _________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, TG(_MODS), |
| 296 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 297 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 297 | _______, _______, _______, _______, | 298 | _______, _______, _______, _______, |
| 298 | _______, _______, | 299 | _______, _______, |
| @@ -464,3 +465,13 @@ void rgb_matrix_indicators_user(void) { | |||
| 464 | } | 465 | } |
| 465 | 466 | ||
| 466 | #endif // RGB_MATRIX_INIT | 467 | #endif // RGB_MATRIX_INIT |
| 468 | |||
| 469 | |||
| 470 | uint16_t get_tapping_term(uint16_t keycode) { | ||
| 471 | if (keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) { | ||
| 472 | if (mod_config(keycode & 0xf) & MOD_MASK_ALT) { | ||
| 473 | return (2 * TAPPING_TERM); | ||
| 474 | } | ||
| 475 | } | ||
| 476 | return TAPPING_TERM; | ||
| 477 | } | ||
diff --git a/layouts/community/ergodox/drashna/rules.mk b/layouts/community/ergodox/drashna/rules.mk index f3cd55ea8..f14353f4c 100644 --- a/layouts/community/ergodox/drashna/rules.mk +++ b/layouts/community/ergodox/drashna/rules.mk | |||
| @@ -12,7 +12,6 @@ BOOTMAGIC_ENABLE = yes | |||
| 12 | UNICODE_ENABLE = yes | 12 | UNICODE_ENABLE = yes |
| 13 | UNICDOEMAP_ENABLE = no | 13 | UNICDOEMAP_ENABLE = no |
| 14 | 14 | ||
| 15 | MACROS_ENABLED = no | ||
| 16 | RGBLIGHT_TWINKLE = no | 15 | RGBLIGHT_TWINKLE = no |
| 17 | INDICATOR_LIGHTS = no | 16 | INDICATOR_LIGHTS = no |
| 18 | RGBLIGHT_STARTUP_ANIMATION = yes | 17 | RGBLIGHT_STARTUP_ANIMATION = yes |
