(defcfg input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd") output (uinput-sink "My KMonad output" "sleep 2; xset r rate 200 60;") ;; 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 true ) (defsrc caps lmet lalt lsft rsft lmet rmet) ;; (defalias ;; ctl-lck (stepped ;; (around (cmd-button "dbus-send --session --print-reply --reply-timeout=2000 --type=method_call --dest=org.emacs.ctrl /on org.freedesktop.DBus.Introspectable.Introspect") (press-only lctl)) ;; (around (cmd-button "dbus-send --session --print-reply --reply-timeout=2000 --type=method_call --dest=org.emacs.ctrl /off org.freedesktop.DBus.Introspectable.Introspect") (release-only lctl)))) (defalias slc (sticky-key 700 lctl) slm (sticky-key 700 lmet) sla (sticky-key 700 lalt) slf (sticky-key 700 lsft) srf (sticky-key 700 rsft)) (deflayer mine @slc @slm @sla @slf @srf (sticky-key 700 lmet) (sticky-key 700 rmet))