Skip to content

Commit

Permalink
fine tunning tapping term and remove replace enter with space
Browse files Browse the repository at this point in the history
  • Loading branch information
asdiasx committed Aug 28, 2024
1 parent 38291f5 commit b038b49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions users/manna-harbour_miryoku/custom_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

#pragma once

#define MIRYOKU_LAYER_BASE \
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \
LGUI_T(KC_A), LALT_T(KC_S), LCTL_T(KC_D), LSFT_T(KC_F), KC_G, KC_H, LSFT_T(KC_J), LCTL_T(KC_K), LALT_T(KC_L), LGUI_T(KC_QUOT), \
LT(U_BUTTON,KC_Z), ALGR_T(KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, ALGR_T(KC_DOT), LT(U_BUTTON,KC_SLSH),\
U_NP, U_NP, LT(U_MEDIA,KC_ESC),LT(U_NAV,KC_SPC), LT(U_MOUSE,KC_TAB),LT(U_SYM,KC_SPC), LT(U_NUM,KC_BSPC), LT(U_FUN,KC_DEL), U_NP, U_NP


#define MIRYOKU_LAYER_NAV \
TD(U_TD_BOOT), TD(U_TD_U_TAP), TD(U_TD_U_EXTRA), TD(U_TD_U_BASE), STRVPN, U_RDO, U_PST, U_CPY, U_CUT, U_UND, \
KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, KC_Y, CW_TOGG, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, \
Expand Down
16 changes: 16 additions & 0 deletions users/manna-harbour_miryoku/manna-harbour_miryoku.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record) {
return true;
}

uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case LSFT_T(KC_F):
return 150; // 150 milissegundos para o Mod-Tap LSFT_T(KC_F)
case LSFT_T(KC_J):
return 150; // 150 milissegundos para o Mod-Tap LSFT_T(KC_J)
case LGUI_T(KC_A):
return 250; // 250 milissegundos para o Mod-Tap LGUI_T(KC_A)
case LGUI_T(KC_QUOT):
return 250; // 250 milissegundos para o Mod-Tap LGUI_T(KC_QUOT)
default:
return TAPPING_TERM; // Usa o valor padrão para outras teclas
}
}


// Additional Features double tap guard

enum {
Expand Down

0 comments on commit b038b49

Please sign in to comment.