nixos/hosts/Ronin/kmonad.kbd

32 lines
809 B
Plaintext

(defcfg
;; For Linux
input (device-file "/dev/input/by-id/usb-0430_Sun_USB_Keyboard-event-kbd")
output (uinput-sink "My KMonad output")
;; Comment this if you want unhandled events not to be emitted
fallthrough true
;; Set this to false to disable any command-execution in KMonad
allow-cmd false
)
(defsrc
a s d f g h j k l ;
)
(defalias
met_a (tap-hold-next-release 200 a lmet)
alt_s (tap-hold-next-release 200 s lalt)
ctl_d (tap-hold-next-release 200 d lctl)
sft_f (tap-hold-next-release 200 f lsft)
sft_j (tap-hold-next-release 200 j rsft)
ctl_k (tap-hold-next-release 200 k rctl)
alt_l (tap-hold-next-release 200 l lalt)
met_; (tap-hold-next-release 200 ; rmet)
)
(deflayer homerowmods
@met_a @alt_s @ctl_d @sft_f g h @sft_j @ctl_k @alt_l @met_;
)