Skip to content

Instantly share code, notes, and snippets.

@jaimemahaffey
Created December 13, 2023 19:59
Show Gist options
  • Save jaimemahaffey/e22da46b607d1ddbd92d6595e939af5e to your computer and use it in GitHub Desktop.
Save jaimemahaffey/e22da46b607d1ddbd92d6595e939af5e to your computer and use it in GitHub Desktop.
My P53 KMonad Config
(defcfg
;; For Windows
input (low-level-hook)
output (send-event-sink)
;; 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
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 home end ins del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / up rsft
lctl lmet lalt spc ralt prnt rctl left down rght
)
(defalias
tog1 (layer-toggle layer1) ;; Bind num to a button that switches to a layer
kil C-A-del ;; Bind kil to a button that Ctrl-Alt-deletes
)
(defalias
ssc (tap-hold-next 300 spc @tog1)
ccl (tap-hold-next 300 esc lctl)
)
(deflayer qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 home end ins del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@ccl a s d f g h j k l ; ' ret
lsft z x c v b n m , . / up @tog1
lctl lmet lalt @ssc ralt prnt rctl left down rght
)
(deflayer layer1
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ left down up right _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment