arsenik_easy_altgr.kbd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ;; ANSI sub-layer (let kanata ignore all other keys)
  2. (defsrc
  3. q w e r t y u i o p
  4. a s d f g h j k l ;
  5. z x c v b n m , . /
  6. lalt spc ralt
  7. )
  8. ;; Base layer (active by default when kanata starts up):
  9. ;; - the 3 main thumb keys become mod/taps
  10. (deflayer qwerty
  11. _ _ _ _ _ _ _ _ _ _
  12. _ _ _ _ _ _ _ _ _ _
  13. _ _ _ _ _ _ _ _ _ _
  14. @alt @nav @sym
  15. )
  16. ;; Navigation layer:
  17. ;; - left: arrows, Tab/Shift-Tab, one-hand shortcuts (Ctrl-AZXCV)
  18. ;; - right: numpad
  19. (deflayer numnav
  20. tab home up end pgup / 7 8 9 XX
  21. C-a lft down rght pgdn - 4 5 6 0
  22. C-z C-x C-c C-v S-tab , 1 2 3 .
  23. del _ esc
  24. )
  25. ;; Special key aliases
  26. (defalias
  27. ;; Main mod-tap: VimNav layer when held, Space when tapped.
  28. ;; The space key must be held long enough (300ms) to become a layer shift.
  29. nav (tap-hold 200 300 spc (layer-toggle numnav))
  30. ;; Space-cadet thumb keys: Shift/BackSpace, AltGr/Return
  31. ;; - acts as a modifier by default, or as BS/Ret when tapped separately;
  32. ;; - works great with Qwerty-Lafayette and Ergo-L keyboard layouts, where
  33. ;; neither Shift nor AltGr are used outside of the 3×10 main alpha keys.
  34. alt (tap-hold-press 200 200 bspc lalt)
  35. sym (tap-hold-press 200 200 ret ralt)
  36. )
  37. ;; vim: set ft=lisp