From 3128c3e14ca6c20c7414d6c1a2529082a00e9fd3 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 5 Apr 2025 01:14:15 +0800 Subject: [PATCH] feat(kanata): add home row mods to kanata --- modules/programs/kanata.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/programs/kanata.nix b/modules/programs/kanata.nix index 11698d8..e994bd2 100644 --- a/modules/programs/kanata.nix +++ b/modules/programs/kanata.nix @@ -10,9 +10,9 @@ (defvar tap-timeout 200 - hold-timeout 200 + home-row-hold-timeout 200 tt $tap-timeout - ht $hold-timeout + hrht $home-row-hold-timeout ) (deflayermap (default-layer) @@ -29,6 +29,17 @@ (macro Backspace Enter) )) MetaRight) + + ;; Home Row Mods + KeyA (tap-hold-release $tt $hrht KeyA ControlLeft) + KeyS (tap-hold-release $tt $hrht KeyS ShiftLeft) + KeyD (tap-hold-release $tt $hrht KeyD AltLeft) + KeyF (tap-hold-release $tt $hrht KeyF MetaLeft) + + Semicolon (tap-hold-release $tt $hrht Semicolon ControlRight) + KeyL (tap-hold-release $tt $hrht KeyL ShiftRight) + KeyK (tap-hold-release $tt $hrht KeyK AltRight) + KeyJ (tap-hold-release $tt $hrht KeyJ MetaRight) ) ''; };