From d555a9c6bb8f224ac32f3d26c482fa78d3891511 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 26 Nov 2024 11:05:50 +0200 Subject: . --- home/dots/.config/kmonad.config | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 home/dots/.config/kmonad.config (limited to 'home/dots/.config') diff --git a/home/dots/.config/kmonad.config b/home/dots/.config/kmonad.config new file mode 100644 index 0000000..f0f26e5 --- /dev/null +++ b/home/dots/.config/kmonad.config @@ -0,0 +1,33 @@ +(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)) -- cgit v1.2.3