From d433298231b9c6ca4ea7bacf41c2b3dbc23a14f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Cazenave?= <70967142+Nuclear-Squid@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:20:24 +0000 Subject: [PATCH] fix(kanata): properly define the timing variables. (#44) --- kanata/deflayer/base_lt.kbd | 10 +--------- kanata/deflayer/base_lt_hrm.kbd | 10 +--------- kanata/kanata.kbd | 9 +++++++++ 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/kanata/deflayer/base_lt.kbd b/kanata/deflayer/base_lt.kbd index 5ec88fb..4c21649 100644 --- a/kanata/deflayer/base_lt.kbd +++ b/kanata/deflayer/base_lt.kbd @@ -8,15 +8,7 @@ @alt @nav @sym ) -;; Timing variables for tap-hold effects. -(defvar - ;; The key must be pressed twice in 200ms to enable repetitions. - tap_timeout 200 - ;; The key must be held 200ms to become a layer shift. - hold_timeout 200 - ;; Slightly higher value for tapying keys, to prevent unexpected hold effect. - long_hold_timeout 300 -) +;; Timing variables are defined in `kanata.kbd` file. (defalias ;; Main mod-tap: Nav layer when held, Space when tapped. diff --git a/kanata/deflayer/base_lt_hrm.kbd b/kanata/deflayer/base_lt_hrm.kbd index 49b8b0c..c1b9800 100644 --- a/kanata/deflayer/base_lt_hrm.kbd +++ b/kanata/deflayer/base_lt_hrm.kbd @@ -8,15 +8,7 @@ @sft @nav @sym ) -;; Timing variables for tap-hold effects. -(defvar - ;; The key must be pressed twice in 200ms to enable repetitions. - tap_timeout 200 - ;; The key must be held 300ms to become a layer shift. - long_hold_timeout 300 - ;; Slightly higher value for tapying keys, to prevent unexpected hold effect. - long_hold_timeout 300 -) +;; Timing variables are defined in `kanata.kbd` file. (defalias ;; Main mod-tap: Nav layer when held, Space when tapped. diff --git a/kanata/kanata.kbd b/kanata/kanata.kbd index dbe4488..705001a 100644 --- a/kanata/kanata.kbd +++ b/kanata/kanata.kbd @@ -11,6 +11,15 @@ ;; Live-reload the configuration with Space+Backspace (requires layer-taps). +;; Timing variables for tap-hold effects. +(defvar + ;; The key must be pressed twice in 200ms to enable repetitions. + tap_timeout 200 + ;; The key must be held 200ms to become a layer shift. + hold_timeout 200 + ;; Slightly higher value for typing keys, to prevent unexpected hold effect. + long_hold_timeout 300 +) ;;----------------------------------------------------------------------------- ;; Original key arrangement on your keyboard: Mac or PC.