Add home row mods using kanata
This commit is contained in:
parent
9c09e1625d
commit
1780453f8b
|
@ -56,6 +56,13 @@
|
|||
enable = true;
|
||||
package = pkgs.gnome3.gvfs;
|
||||
};
|
||||
kanata = {
|
||||
enable = true;
|
||||
keyboards.main = {
|
||||
config = builtins.readFile ./kanata.kbd;
|
||||
extraDefCfg = "process-unmapped-keys yes";
|
||||
};
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
|
|
34
system/kanata.kbd
Normal file
34
system/kanata.kbd
Normal file
|
@ -0,0 +1,34 @@
|
|||
(
|
||||
defsrc
|
||||
a s d f
|
||||
j k l ;
|
||||
)
|
||||
|
||||
(
|
||||
defvar
|
||||
tap-time 150
|
||||
hold-time 250
|
||||
)
|
||||
|
||||
(
|
||||
defalias
|
||||
a-mod (tap-hold $tap-time $hold-time a lmet)
|
||||
s-mod (tap-hold $tap-time $hold-time s lalt)
|
||||
d-mod (tap-hold $tap-time $hold-time d lsft)
|
||||
f-mod (tap-hold $tap-time $hold-time f lctl)
|
||||
j-mod (tap-hold $tap-time $hold-time j lctl)
|
||||
k-mod (tap-hold $tap-time $hold-time k lsft)
|
||||
l-mod (tap-hold $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:
|
Loading…
Reference in a new issue