From f56f078ba55445ac9ae8a535e52837d4968942cf Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 3 Oct 2023 19:18:57 +0200 Subject: [PATCH] bit config tuning --- common/config.h | 5 ++++- common/keymap.h | 4 ++-- common/rules.mk | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/config.h b/common/config.h index 13f1234..9c1f808 100644 --- a/common/config.h +++ b/common/config.h @@ -16,6 +16,9 @@ #pragma once +// bit larger debounce delay, the default is 5 +#define DEBOUNCE 10 + // no more than 8 layers #define LAYER_STATE_8BIT @@ -30,7 +33,7 @@ // details see https://precondition.github.io/home-row-mods // the default is 200 -#define TAPPING_TERM 175 +#define TAPPING_TERM 200 // Enable rapid switch from tap to hold, disables double tap hold auto-repeat. #define QUICK_TAP_TERM 0 diff --git a/common/keymap.h b/common/keymap.h index 051aef9..3b7240e 100644 --- a/common/keymap.h +++ b/common/keymap.h @@ -92,8 +92,8 @@ bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t* tap_hold_record, uint16_t other_keycode, keyrecord_t* other_record) { - // Also allow same-hand holds when the other key is in the rows below the - // alphas. I need the `% (MATRIX_ROWS / 2)` because my keyboard is split. + // allow that bottom row has no delay + if (tap_hold_record->event.key.row % (MATRIX_ROWS / 2) >= 3) { return true; } if (other_record->event.key.row % (MATRIX_ROWS / 2) >= 3) { return true; } // Otherwise, follow the opposite hands rule. diff --git a/common/rules.mk b/common/rules.mk index 904762d..82f7de2 100644 --- a/common/rules.mk +++ b/common/rules.mk @@ -10,5 +10,8 @@ SPACE_CADET_ENABLE = no GRAVE_ESC_ENABLE = no MAGIC_ENABLE = no +# responsive debouncing +DEBOUNCE_TYPE = sym_eager_pk + # add achordion to improve home row modifiers SRC += /home/cullmann/install/qmk/christoph-cullmann/common/achordion.c