summaryrefslogtreecommitdiff
path: root/home/dots/.config/kmonad.config
blob: f0f26e544a07e765d6b87642cf1ef7b070599a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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))