diff options
| author | XScorpion2 <rcalt2vt@gmail.com> | 2019-05-13 09:58:15 -0500 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-13 07:58:15 -0700 |
| commit | 9b46fabe084cd3e15104f88ef5d1f87f215de3c6 (patch) | |
| tree | 7fddfd1b1025b42d2cf32f05fcbbfb6309d71bc2 /users/xulkal | |
| parent | 8e3cbe030c10090301ae94427cf0e6cf31ef31d9 (diff) | |
| download | qmk_firmware-9b46fabe084cd3e15104f88ef5d1f87f215de3c6.tar.gz qmk_firmware-9b46fabe084cd3e15104f88ef5d1f87f215de3c6.zip | |
Xulkal Keymap Changes (#5861)
Diffstat (limited to 'users/xulkal')
| -rw-r--r-- | users/xulkal/config.h | 17 | ||||
| -rw-r--r-- | users/xulkal/layouts.h | 4 | ||||
| -rw-r--r-- | users/xulkal/process_records.c | 15 |
3 files changed, 26 insertions, 10 deletions
diff --git a/users/xulkal/config.h b/users/xulkal/config.h index 2899017b0..ecd01f794 100644 --- a/users/xulkal/config.h +++ b/users/xulkal/config.h | |||
| @@ -1,8 +1,6 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #ifndef TAPPING_FORCE_HOLD | 3 | #undef TAPPING_FORCE_HOLD |
| 4 | #define TAPPING_FORCE_HOLD | ||
| 5 | #endif // TAPPING_FORCE_HOLD | ||
| 6 | 4 | ||
| 7 | #undef TAPPING_TERM | 5 | #undef TAPPING_TERM |
| 8 | #define TAPPING_TERM 175 | 6 | #define TAPPING_TERM 175 |
| @@ -12,6 +10,17 @@ | |||
| 12 | #define LCPO_KEYS KC_LCTL, KC_TRNS, KC_MINS | 10 | #define LCPO_KEYS KC_LCTL, KC_TRNS, KC_MINS |
| 13 | #define RCPC_KEYS KC_RCTL, KC_TRNS, KC_EQL | 11 | #define RCPC_KEYS KC_RCTL, KC_TRNS, KC_EQL |
| 14 | 12 | ||
| 13 | // Running out of firmware space | ||
| 14 | #if defined(__AVR__) | ||
| 15 | #undef RGB_MATRIX_KEYPRESSES | ||
| 16 | #undef RGB_MATRIX_KEYRELEASES | ||
| 17 | #undef RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 18 | #else | ||
| 19 | #define RGB_MATRIX_KEYPRESSES | ||
| 20 | #undef RGB_MATRIX_KEYRELEASES | ||
| 21 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 22 | #endif | ||
| 23 | |||
| 15 | // No need for the single versions when multi performance isn't a problem =D | 24 | // No need for the single versions when multi performance isn't a problem =D |
| 16 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | 25 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
| 17 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | 26 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS |
| @@ -20,8 +29,10 @@ | |||
| 20 | #define DISABLE_RGB_MATRIX_SOLID_SPLASH | 29 | #define DISABLE_RGB_MATRIX_SOLID_SPLASH |
| 21 | 30 | ||
| 22 | // Don't like or feel to identical to other effects | 31 | // Don't like or feel to identical to other effects |
| 32 | #if defined(__AVR__) | ||
| 23 | #define DISABLE_RGB_MATRIX_RAINBOW_BEACON | 33 | #define DISABLE_RGB_MATRIX_RAINBOW_BEACON |
| 24 | #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | 34 | #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS |
| 25 | #define DISABLE_RGB_MATRIX_DIGITAL_RAIN | 35 | #define DISABLE_RGB_MATRIX_DIGITAL_RAIN |
| 26 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 36 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
| 27 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | 37 | #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS |
| 38 | #endif | ||
diff --git a/users/xulkal/layouts.h b/users/xulkal/layouts.h index 61637bfe3..5180992a8 100644 --- a/users/xulkal/layouts.h +++ b/users/xulkal/layouts.h | |||
| @@ -50,7 +50,7 @@ | |||
| 50 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | 50 | * |------+------+------+------+------+------| |------+------+------+------+------+------| |
| 51 | * | | | | | | | | | | | | | | | 51 | * | | | | | | | | | | | | | | |
| 52 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | 52 | * |------+------+------+------+------+------| |------+------+------+------+------+------| |
| 53 | * | | | | | | | | | PREV | VOL- | VOL+ | NEXT | PLAY | | 53 | * | | | | | | | | | PREV | VOL+ | VOL- | NEXT | PLAY | |
| 54 | * `-----------------------------------------' `-----------------------------------------' | 54 | * `-----------------------------------------' `-----------------------------------------' |
| 55 | */ | 55 | */ |
| 56 | 56 | ||
| @@ -64,7 +64,7 @@ | |||
| 64 | #define __________________RAISE_R2_________________ _______, KC_INS, KC_HOME, KC_PGUP, KC_PSCR, _______ | 64 | #define __________________RAISE_R2_________________ _______, KC_INS, KC_HOME, KC_PGUP, KC_PSCR, _______ |
| 65 | #define __________________RAISE_R3_________________ _______, KC_DEL, KC_END, KC_PGDN, KC_SLCK, _______ | 65 | #define __________________RAISE_R3_________________ _______, KC_DEL, KC_END, KC_PGDN, KC_SLCK, _______ |
| 66 | #define __________________RAISE_R4_________________ _______, _______, _______, _______, _______, _______ | 66 | #define __________________RAISE_R4_________________ _______, _______, _______, _______, _______, _______ |
| 67 | #define __________________RAISE_R5_________________ _______, KC_MPRV, KC_MPRV, KC_VOLD, KC_MNXT, KC_MPLY | 67 | #define __________________RAISE_R5_________________ _______, KC_MPRV, KC_VOLU, KC_VOLD, KC_MNXT, KC_MPLY |
| 68 | 68 | ||
| 69 | /* LOWER Layout | 69 | /* LOWER Layout |
| 70 | * ,-----------------------------------------. ,-----------------------------------------. | 70 | * ,-----------------------------------------. ,-----------------------------------------. |
diff --git a/users/xulkal/process_records.c b/users/xulkal/process_records.c index 531f99eb0..7c2b5e133 100644 --- a/users/xulkal/process_records.c +++ b/users/xulkal/process_records.c | |||
| @@ -16,13 +16,13 @@ extern void eeconfig_update_rgb_matrix_default(void); | |||
| 16 | #endif | 16 | #endif |
| 17 | 17 | ||
| 18 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 18 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 19 | static uint16_t reset_timer; | ||
| 19 | switch (keycode) { | 20 | switch (keycode) { |
| 20 | case QWERTY: | 21 | case QWERTY: |
| 21 | if (record->event.pressed) { | 22 | if (record->event.pressed) { |
| 22 | set_single_persistent_default_layer(_QWERTY); | 23 | set_single_persistent_default_layer(_QWERTY); |
| 23 | } | 24 | } |
| 24 | return false; | 25 | return false; |
| 25 | break; | ||
| 26 | case GAME: | 26 | case GAME: |
| 27 | #ifndef GAMELAYER_DISABLE | 27 | #ifndef GAMELAYER_DISABLE |
| 28 | if (record->event.pressed) { | 28 | if (record->event.pressed) { |
| @@ -30,7 +30,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 30 | } | 30 | } |
| 31 | #endif | 31 | #endif |
| 32 | return false; | 32 | return false; |
| 33 | break; | ||
| 34 | case LOWER: | 33 | case LOWER: |
| 35 | if (record->event.pressed) { | 34 | if (record->event.pressed) { |
| 36 | layer_on(_LOWER); | 35 | layer_on(_LOWER); |
| @@ -44,7 +43,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 44 | #endif | 43 | #endif |
| 45 | } | 44 | } |
| 46 | return false; | 45 | return false; |
| 47 | break; | ||
| 48 | case RAISE: | 46 | case RAISE: |
| 49 | if (record->event.pressed) { | 47 | if (record->event.pressed) { |
| 50 | layer_on(_RAISE); | 48 | layer_on(_RAISE); |
| @@ -58,7 +56,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 58 | #endif | 56 | #endif |
| 59 | } | 57 | } |
| 60 | return false; | 58 | return false; |
| 61 | break; | ||
| 62 | case RGBRST: | 59 | case RGBRST: |
| 63 | #if defined(RGBLIGHT_ENABLE) | 60 | #if defined(RGBLIGHT_ENABLE) |
| 64 | if (record->event.pressed) { | 61 | if (record->event.pressed) { |
| @@ -71,7 +68,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 71 | } | 68 | } |
| 72 | #endif | 69 | #endif |
| 73 | return false; | 70 | return false; |
| 74 | break; | 71 | case RESET: |
| 72 | if (record->event.pressed) { | ||
| 73 | reset_timer = timer_read(); | ||
| 74 | } else { | ||
| 75 | if (timer_elapsed(reset_timer) >= 500) { | ||
| 76 | reset_keyboard(); | ||
| 77 | } | ||
| 78 | } | ||
| 79 | return false; | ||
| 75 | } | 80 | } |
| 76 | 81 | ||
| 77 | return process_record_keymap(keycode, record) && | 82 | return process_record_keymap(keycode, record) && |
