diff options
author | Marc Coquand <marc@mccd.space> | 2024-11-26 11:05:50 +0200 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-11-26 11:05:50 +0200 |
commit | d555a9c6bb8f224ac32f3d26c482fa78d3891511 (patch) | |
tree | 4561ba36c2bec9542b58cc0d0b6236a1edeaa61f /home/dots/.config/kmonad.config | |
parent | f2267f63134432923e9e7a7ad900532bec6a5bd6 (diff) | |
download | guix-main.tar.gz guix-main.tar.bz2 guix-main.zip |
Diffstat (limited to 'home/dots/.config/kmonad.config')
-rw-r--r-- | home/dots/.config/kmonad.config | 33 |
1 files changed, 33 insertions, 0 deletions
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)) |