34 lines
853 B
Nix
34 lines
853 B
Nix
|
_: {
|
||
|
services.kanata = {
|
||
|
enable = true;
|
||
|
keyboards.default = {
|
||
|
extraDefCfg = "process-unmapped-keys yes";
|
||
|
config = ''
|
||
|
(defsrc
|
||
|
caps a s d f j k l ;
|
||
|
)
|
||
|
(defvar
|
||
|
tap-time 150
|
||
|
hold-time 200
|
||
|
)
|
||
|
|
||
|
(defalias
|
||
|
escctrl (tap-hold 100 100 esc lctl)
|
||
|
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 rctl)
|
||
|
k (tap-hold $tap-time $hold-time k rsft)
|
||
|
l (tap-hold $tap-time $hold-time l ralt)
|
||
|
; (tap-hold $tap-time $hold-time ; rmet)
|
||
|
)
|
||
|
|
||
|
(deflayer base
|
||
|
@escctrl @a @s @d @f @j @k @l @;
|
||
|
)
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|