Adjust kanata timings using config from dreams-of-code, renable service
This commit is contained in:
parent
654901cf2d
commit
e2e290166e
|
@ -57,7 +57,7 @@
|
|||
package = pkgs.gnome3.gvfs;
|
||||
};
|
||||
kanata = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
keyboards.main = {
|
||||
config = builtins.readFile ./kanata.kbd;
|
||||
extraDefCfg = "process-unmapped-keys yes";
|
||||
|
|
|
@ -1,34 +1,22 @@
|
|||
(
|
||||
defsrc
|
||||
a s d f
|
||||
j k l ;
|
||||
(defsrc
|
||||
a s d f j k l ;
|
||||
)
|
||||
|
||||
(
|
||||
defvar
|
||||
tap-time 200
|
||||
(defvar
|
||||
tap-time 150
|
||||
hold-time 200
|
||||
)
|
||||
|
||||
(
|
||||
defalias
|
||||
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)
|
||||
(defalias
|
||||
a (tap-hold $tap-time $hold-time a lmet)
|
||||
s (tap-hold $tap-time $hold-time s lalt)
|
||||
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
|
||||
@a-mod @s-mod @d-mod @f-mod
|
||||
@j-mod @k-mod @l-mod @;-mod
|
||||
(deflayer base
|
||||
@a @s @d @f @j @k @l @;
|
||||
)
|
||||
|
||||
;; Local Variables:
|
||||
;; mode: lisp
|
||||
;; apheleia-mode: nil
|
||||
;; End:
|
||||
|
|
Loading…
Reference in a new issue