feat(kanata): add caps lock rebind to enter and shift on hold

This commit is contained in:
Mohammad Rafiq 2025-04-05 00:09:18 +08:00
parent 8a19c9cf00
commit 1bf5eb98a1
No known key found for this signature in database
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{
services.kanata = {
enable = true;
keyboards.k14 = {
devices = [ "/dev/input/by-id/usb-Keychron_Keychron_K14-event-kbd" ];
extraDefCfg = "process-unmapped-keys yes";
config = # lisp
''
(defsrc)
(deflayermap (default-layer)
;; tap caps lock as enter, hold as left shift
caps (tap-hold 100 100 esc lshift))
'';
};
};
}