2024-11-06 15:49:58 +00:00
|
|
|
{
|
2024-11-01 21:50:39 +00:00
|
|
|
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 @;
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|