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
hold-time 200
)
( (defalias
defvar a (tap-hold $tap-time $hold-time a lmet)
tap-time 200 s (tap-hold $tap-time $hold-time s lalt)
hold-time 200 d (tap-hold $tap-time $hold-time d lsft)
) f (tap-hold $tap-time $hold-time f lctl)
j (tap-hold $tap-time $hold-time j lctl)
k (tap-hold $tap-time $hold-time k lsft)
l (tap-hold $tap-time $hold-time l lalt)
; (tap-hold $tap-time $hold-time ; lmet)
)
( (deflayer base
defalias @a @s @d @f @j @k @l @;
a-mod (tap-hold-press $tap-time $hold-time a lmet) )
s-mod (tap-hold-press $tap-time $hold-time s lalt)
d-mod (tap-hold-press $tap-time $hold-time d lsft)
f-mod (tap-hold-press $tap-time $hold-time f lctl)
j-mod (tap-hold-press $tap-time $hold-time j lctl)
k-mod (tap-hold-press $tap-time $hold-time k lsft)
l-mod (tap-hold-press $tap-time $hold-time l lalt)
;-mod (tap-hold $tap-time $hold-time ; lmet)
)
(
deflayer base
@a-mod @s-mod @d-mod @f-mod
@j-mod @k-mod @l-mod @;-mod
)
;; Local Variables:
;; mode: lisp
;; apheleia-mode: nil
;; End: