kanata.kbd 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ;;==========================================================================;;
  2. ;; ;;
  3. ;; With Arsenik, choose the features you want for your keyboard: ;;
  4. ;; angle mods, Vim-like navigation layer, Mac/Azerty/Qwertz support, etc. ;;
  5. ;; ;;
  6. ;;==========================================================================;;
  7. ;; Every section is mandatory and should enable one and only one `include`
  8. ;; - enable each feature by un-commenting the related line.
  9. ;; - a commented line starts with ;;
  10. ;; Live-reload the configuration with Space+Backspace (requires layer-taps).
  11. ;;-----------------------------------------------------------------------------
  12. ;; Original key arrangement on your keyboard: Mac or PC.
  13. ;; Choose here if you want to add an angle mod: ZXCVB are shifted to the left.
  14. ;; See https://colemakmods.github.io/ergonomic-mods/angle.html for more details.
  15. ;; (include defsrc_pc.kbd) ;; PC, standard finger assignment
  16. ;; (include defsrc_mac.kbd) ;; Mac, standard finger assignment
  17. (include defsrc_pc_anglemod.kbd) ;; PC, ZXCVB are shifted to the left
  18. ;; (include defsrc_mac_anglemod.kbd) ;; Mac, ZXCVB are shifted to the left
  19. ;;-----------------------------------------------------------------------------
  20. ;; `Base` layer: standard or dual keys? (layer-taps, homerow mods?)
  21. ;; If you just want angle mod, you still have to enable the standard base.
  22. (include deflayer_base.kbd) ;; standard keyboard behavior
  23. ;; (include deflayer_base_lt.kbd) ;; layer-taps on both thumb keys
  24. ;; (include deflayer_base_lt_hrm.kbd) ;; layer-taps + home-row mods
  25. ;; Note: not enabling layer-taps here makes the rest of the file useless.
  26. ;;-----------------------------------------------------------------------------
  27. ;; `Symbols` layer
  28. (include deflayer_symbols_noop.kbd) ;; AltGr stays as-is
  29. ;; (include deflayer_symbols_lafayette.kbd) ;; AltGr programmation layer like Ergo‑L
  30. ;; (include deflayer_symbols_noop_num.kbd) ;; AltGr stays as-is + NumRow layers
  31. ;; (include deflayer_symbols_lafayette_num.kbd) ;; AltGr prog layer + NumRow layers
  32. ;;-----------------------------------------------------------------------------
  33. ;; `Navigation` layer: ESDF or HJKL?
  34. (include deflayer_navigation.kbd) ;; ESDF on the left, NumPad on the right
  35. ;; (include deflayer_navigation_vim.kbd) ;; HJKL + NumPad on [Space]+[Q]
  36. ;; Replace XX by the keyboard shortcut of your application launcher, if any.
  37. ;; Mapped on [Space]+[P] in both navigation layers.
  38. ;; (defalias run M-p) ;; [Command]-[P]
  39. (defalias run XX) ;; do nothing
  40. ;;-----------------------------------------------------------------------------
  41. ;; Aliases for `Symbols` and `Navigation` layers
  42. ;; Depends on PC/Mac and keyboard layout
  43. (include defalias_ergol_pc.kbd) ;; Ergo‑L PC
  44. ;; (include defalias_qwerty-lafayette_pc.kbd) ;; Qwerty‑Lafayette PC
  45. ;; (include defalias_qwerty_pc.kbd) ;; Qwerty / Colemak PC
  46. ;; (include defalias_qwerty_mac.kbd) ;; Qwerty / Colemak Mac
  47. ;; (include defalias_azerty_pc.kbd) ;; Azerty PC
  48. ;; (include defalias_qwertz_pc.kbd) ;; Qwertz PC
  49. ;; (include defalias_bepo_pc.kbd) ;; Bépo PC
  50. ;; (include defalias_optimot_pc.kbd) ;; Optimot PC
  51. ;;-----------------------------------------------------------------------------
  52. ;; Extra configuration
  53. ;; You should not modify this, only if you need to.
  54. (defcfg
  55. ;; Enabled makes kanata process keys that are not defined in defsrc
  56. ;; Fixes altgr for Windows (see Arsenik issue #22)
  57. process-unmapped-keys yes
  58. windows-altgr cancel-lctl-press
  59. )
  60. ;; vim: set ft=lisp