47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
;; 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*
|
|
_ up kp7 kp8 kp9 kp-
|
|
_ lft down rght kp4 kp5 kp6 kp+
|
|
f11 f12 _ kp. kp0 kp1 kp2 kp3 kprt
|
|
)
|