Add home row mods using kanata

This commit is contained in:
Evie Litherland-Smith 2024-11-04 06:32:54 +00:00
parent 9c09e1625d
commit 1780453f8b
2 changed files with 41 additions and 0 deletions

View file

@ -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
View 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: