Skip to content

Instantly share code, notes, and snippets.

@haruhi-s
Last active July 2, 2024 09:54
Show Gist options
  • Save haruhi-s/738047aa9d5d5ea4607df3761e32e3aa to your computer and use it in GitHub Desktop.
Save haruhi-s/738047aa9d5d5ea4607df3761e32e3aa to your computer and use it in GitHub Desktop.
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink
"KMonad"
"sleep 0.2s; xset r rate 250 50; sleep 0.2s; setxkbmap -option compose:menu")
)
#| -------------- Keeb Pattern ------------------------------
(deflayer name
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins prnt del
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
)
------------------------------------------------------------- |#
(defalias
nav (layer-toggle A)
)
(defsrc
mute vold volu
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins prnt del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
caps a s d f g h j k l ; ' \
lsft 102d z x c v b n m , . / rsft
lctl lmet lalt spc ralt rctl left up down right
)
(deflayer main
mute vold volu
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins prnt del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
lctl a s d f g h j k l ; ' \
lsft 102d z x c v b n m , . / rsft
lctl lmet @nav spc ralt rctl left up down right
)
(deflayer A
mute vold volu
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins prnt del
grv f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 - = bspc
tab [ ] e r t ins \ prnt slck up pause ] bspc
lctl vold volu mute f g * / home left rght ' ret
lsft 102d z x c v b + - end down next rsft
lctl lmet lalt = ralt rctl left up down right
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment