dotfiles/config/kanata/kanata.kbd

48 lines
1.8 KiB
Text
Raw Normal View History

2026-07-30 04:40:03 -04:00
;; Kanata Configuration
(defcfg
2026-07-30 23:04:33 -04:00
linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd
2026-07-30 04:40:03 -04:00
process-unmapped-keys yes
)
;; Source layout - matches physical key positions
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet rctl up
left down rght
2026-08-01 12:36:16 -04:00
f7 f8
2026-07-30 04:40:03 -04:00
)
;; Aliases for cleaner configuration
(defalias
;; Modifiers and special keys
ctl lctl ;; Regular control key
cps (tap-hold 200 150 esc lctl) ;; Caps = Esc on tap, Ctrl on hold
met (layer-toggle meta) ;; Meta (Windows/Command) key with layer
)
;; Default layer
(deflayer default
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@cps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
@ctl lalt lmet spc rmet ralt rmet _
_ _ _
2026-08-01 12:36:16 -04:00
f7 f8
2026-07-30 04:40:03 -04:00
)
;; Meta (Windows/Command) layer
(deflayer meta
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ left down up rght _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
_ _ _
2026-08-01 12:36:16 -04:00
_ _
2026-07-30 04:40:03 -04:00
)