Skip to content

Commit

Permalink
fix(kanata): properly define the timing variables. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclear-Squid authored Sep 19, 2024
1 parent e82a410 commit d433298
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
10 changes: 1 addition & 9 deletions kanata/deflayer/base_lt.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 1 addition & 9 deletions kanata/deflayer/base_lt_hrm.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions kanata/kanata.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d433298

Please sign in to comment.