base_lt_hrm.kbd 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ;; Base layer: layer-taps under the thumbs + home-row mods on SDF and JKL
  2. (deflayer base
  3. _ _ _ _ _ _ _ _ _ _ _
  4. q w e r t y u i o p
  5. a @ss @dd @ff g h @jj @kk @ll ;
  6. z x c v b < n m , . /
  7. @sft @nav @sym
  8. )
  9. ;; Timing variables for tap-hold effects.
  10. (defvar
  11. ;; The key must be pressed twice in 200ms to enable repetitions.
  12. tap_timeout 200
  13. ;; The key must be held 300ms to become a layer shift.
  14. long_hold_timeout 300
  15. ;; Slightly higher value for tapying keys, to prevent unexpected hold effect.
  16. long_hold_timeout 300
  17. )
  18. (defalias
  19. ;; Main mod-tap: Nav layer when held, Space when tapped.
  20. nav (tap-hold $tap_timeout $long_hold_timeout spc (layer-while-held navigation))
  21. ;; Space-cadet thumb keys: Shift/BackSpace, AltGr/Enter.
  22. ;; Acts as a modifier by default, or as BackSpace/Enter when tapped separately.
  23. sft (tap-hold-press $tap_timeout $hold_timeout bspc lsft)
  24. sym (tap-hold-press $tap_timeout $hold_timeout ret (layer-while-held symbols))
  25. ;; Home-row mods
  26. ss (tap-hold $tap_timeout $long_hold_timeout s lmet)
  27. dd (tap-hold $tap_timeout $long_hold_timeout d lctl)
  28. ff (tap-hold $tap_timeout $long_hold_timeout f lalt)
  29. jj (tap-hold $tap_timeout $long_hold_timeout j lalt)
  30. kk (tap-hold $tap_timeout $long_hold_timeout k rctl)
  31. ll (tap-hold $tap_timeout $long_hold_timeout l rmet)
  32. )
  33. ;; vim: set ft=lisp