43 lines
1.7 KiB
Text
43 lines
1.7 KiB
Text
;; Kanata Configuration
|
|
|
|
(defcfg
|
|
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
|
|
)
|
|
|
|
;; 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 _
|
|
_ _ _
|
|
)
|
|
|
|
;; Meta (Windows/Command) layer
|
|
(deflayer meta
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ _ _ _ left down up rght _ _ _
|
|
_ _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ _ _ _ _ _
|
|
_ _ _
|
|
)
|