;; Basic home row mods example using QWERTY ;; And approximation for a numeric keypad (defcfg process-unmapped-keys yes tray-icon kanata-icon.svg linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd ) (defvar tap-time 350 hold-time 300) (defalias w (tap-hold $tap-time $hold-time w ralt) o (tap-hold $tap-time $hold-time o ralt) 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 lctl) f (tap-hold $tap-time $hold-time f lsft) j (tap-hold $tap-time $hold-time j rsft) k (tap-hold $tap-time $hold-time k rctl) l (tap-hold $tap-time $hold-time l lalt) ; (tap-hold $tap-time $hold-time ; lmet) x (tap-hold $tap-time $hold-time x (layer-while-held numeric)) , (tap-hold $tap-time $hold-time , (layer-while-held numeric)) ) (defsrc 9 0 w e u i o p ⇪ a s d f j k l ; ‹⇧ x c v b n m , . / ‹⌥ ) (deflayer (base 🖻 kanata-icon.svg) _ _ @w _ _ _ @o _ _ @a @s @d @f @j @k @l @; ⎋ @x _ _ _ _ _ @, _ _ ⌫ ) (deflayer (numeric 🖻 numeric.png) kp/ kp* _ ▲ kp7 kp8 kp9 kp- _ _ ◀ ▼ ▶ kp4 kp5 kp6 kp+ _ f11 f12 _ kp. kp0 kp1 kp2 kp3 kprt _ ) ;; ⇪ ⎋ ‹⇧ ⇧› ‹⌥ ⌫ ▶ ▼ ▲ ◀ ;; https://dev.to/shanu-kumawat/how-to-set-up-kanata-on-nixos-a-step-by-step-guide-1jk#roc ;; https://github.com/jtroo/kanata/blob/main/parser/src/keys/mod.rs