Skip to content

Instantly share code, notes, and snippets.

@iamaleksey
Last active June 30, 2021 14:03
Show Gist options
  • Save iamaleksey/ccfb72e9b57a59c6706c9997be46ce70 to your computer and use it in GitHub Desktop.
Save iamaleksey/ccfb72e9b57a59c6706c9997be46ce70 to your computer and use it in GitHub Desktop.
(defcfg
input (iokit-name "Apple Internal Keyboard / Trackpad")
output (kext)
fallthrough true
)
(defalias
ctl_a (tap-hold-next-release 175 a lctl)
alt_s (tap-hold-next-release 175 s lalt)
met_d (tap-hold-next-release 175 d lmet)
sft_f (tap-hold-next-release 175 f lsft)
sft_j (tap-hold-next-release 175 j rsft)
met_k (tap-hold-next-release 175 k rmet)
alt_l (tap-hold-next-release 175 l lalt)
ctl_; (tap-hold-next-release 175 ; rctl)
)
(defalias fn (layer-toggle function))
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
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 , . / rsft up
fn lctl lalt lmet spc rmet ralt left down rght
)
(deflayer default
_ brdn brup lp mctl bldn blup prev pp next mute vold volu
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ @ctl_a @alt_s @met_d @sft_f _ _ @sft_j @met_k @alt_l @ctl_; _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
@fn _ _ _ _ _ _ _ _ _
)
(deflayer function
_ f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment