Adjust kanata timings using config from dreams-of-code, renable service

This commit is contained in:
Evie Litherland-Smith 2024-11-04 11:00:11 +00:00
parent 654901cf2d
commit e2e290166e
2 changed files with 21 additions and 33 deletions

View file

@ -57,7 +57,7 @@
package = pkgs.gnome3.gvfs; package = pkgs.gnome3.gvfs;
}; };
kanata = { kanata = {
enable = false; enable = true;
keyboards.main = { keyboards.main = {
config = builtins.readFile ./kanata.kbd; config = builtins.readFile ./kanata.kbd;
extraDefCfg = "process-unmapped-keys yes"; extraDefCfg = "process-unmapped-keys yes";

View file

@ -1,34 +1,22 @@
( (defsrc
defsrc a s d f j k l ;
a s d f
j k l ;
) )
(defvar
( tap-time 150
defvar
tap-time 200
hold-time 200 hold-time 200
) )
( (defalias
defalias a (tap-hold $tap-time $hold-time a lmet)
a-mod (tap-hold-press $tap-time $hold-time a lmet) s (tap-hold $tap-time $hold-time s lalt)
s-mod (tap-hold-press $tap-time $hold-time s lalt) d (tap-hold $tap-time $hold-time d lsft)
d-mod (tap-hold-press $tap-time $hold-time d lsft) f (tap-hold $tap-time $hold-time f lctl)
f-mod (tap-hold-press $tap-time $hold-time f lctl) j (tap-hold $tap-time $hold-time j lctl)
j-mod (tap-hold-press $tap-time $hold-time j lctl) k (tap-hold $tap-time $hold-time k lsft)
k-mod (tap-hold-press $tap-time $hold-time k lsft) l (tap-hold $tap-time $hold-time l lalt)
l-mod (tap-hold-press $tap-time $hold-time l lalt) ; (tap-hold $tap-time $hold-time ; lmet)
;-mod (tap-hold $tap-time $hold-time ; lmet)
) )
( (deflayer base
deflayer base @a @s @d @f @j @k @l @;
@a-mod @s-mod @d-mod @f-mod
@j-mod @k-mod @l-mod @;-mod
) )
;; Local Variables:
;; mode: lisp
;; apheleia-mode: nil
;; End: