base_lt.kbd 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. ;; Base layer: the 3 main thumb keys become mod/taps
  2. (deflayer base
  3. _ _ _ _ _ _ _ _ _ _ _
  4. q w e r t y u i o p
  5. a s d f g h j k l ;
  6. z x c v b < n m , . /
  7. @alt @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 200ms to become a layer shift.
  14. hold_timeout 200
  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: Alt/BackSpace, AltGr/Enter.
  22. ;; Acts as a modifier by default, or as BackSpace/Enter when tapped separately.
  23. alt (tap-hold-press $tap_timeout $hold_timeout bspc lalt)
  24. sym (tap-hold-press $tap_timeout $hold_timeout ret (layer-while-held symbols))
  25. )
  26. ;; vim: set ft=lisp