From 03506b94fd408e677b437f43767877b7542bbefd Mon Sep 17 00:00:00 2001 From: Ilham Agustiawan <47362801+ilham-agustiawan@users.noreply.github.com> Date: Tue, 24 Dec 2024 08:56:54 +0700 Subject: [PATCH] update --- .../5x6/keymaps/agustiawanilham/config.h | 6 +++--- .../5x6/keymaps/agustiawanilham/keymap.c | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/config.h b/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/config.h index 914f94a224e6..ae0f1f2fcbd5 100644 --- a/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/config.h +++ b/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/config.h @@ -24,10 +24,10 @@ along with this program. If not, see . /* QMK */ // Tap-hold configuration for home row mods. -#define TAPPING_TERM 150 +#define TAPPING_TERM 140 #define PERMISSIVE_HOLD -#define TAPPING_TERM_PER_KEY -#define TAPPING_FORCE_HOLD_PER_KEY +// #define TAPPING_TERM_PER_KEY +// #define TAPPING_FORCE_HOLD_PER_KEY #define QUICK_TAP_TERM 0 #define QUICK_TAP_TERM_PER_KEY diff --git a/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/keymap.c b/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/keymap.c index b5dcac851be0..344ff8e3454f 100644 --- a/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/keymap.c +++ b/keyboards/handwired/dactyl_manuform/5x6/keymaps/agustiawanilham/keymap.c @@ -152,12 +152,13 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { // Middle fingers case QHOME_C: case QHOME_COMM: - return TAPPING_TERM - 20; + case QHOME_SCLN: + return TAPPING_TERM - 30; // Index fingers case QHOME_V: case QHOME_M: - return TAPPING_TERM - 20; + return TAPPING_TERM - 30; default: return TAPPING_TERM; @@ -211,8 +212,18 @@ uint16_t achordion_streak_chord_timeout( return 0; } break; + case QHOME_SCLN: + if (next_keycode == KC_C || next_keycode == KC_V) { + return 0; + } + break; + case QHOME_Z: + if (next_keycode == KC_SPC) { + return 0; + } + break; case QHOME_C: - if (next_keycode == QHOME_N) { + if (next_keycode == QHOME_N || next_keycode == KC_P) { return 0; } break; @@ -223,7 +234,7 @@ uint16_t achordion_streak_chord_timeout( if ((mod & MOD_LSFT) != 0) { return 100; // A short streak timeout for Shift mod-tap keys. } else { - return 220; // A longer timeout otherwise. + return 180; // A longer timeout otherwise. } }