dotfiles/.config/kanata/kanata.kbd

95 lines
4.1 KiB
Common Lisp
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

;;==========================================================================;;
;; ;;
;; With Arsenik, choose the features you want for your keyboard: ;;
;; angle mods, Vim-like navigation layer, Mac/Azerty/Qwertz support, etc. ;;
;; ;;
;;==========================================================================;;
;; Every section is mandatory and should enable one and only one `include`
;; - enable each feature by un-commenting the related line.
;; - a commented line starts with ;;
;; Live-reload the configuration with Space+Backspace (requires layer-taps).
;; Timing variables for tap-hold effects.
(defvar
;; The key must be pressed twice in 200ms to enable repetitions.
tap_timeout 200
;; The key must be held 200ms to become a layer shift.
hold_timeout 200
;; Slightly higher value for typing keys, to prevent unexpected hold effect.
long_hold_timeout 300
)
;;-----------------------------------------------------------------------------
;; Original key arrangement on your keyboard: Mac or PC.
;; Choose here if you want to add an angle mod: ZXCVB are shifted to the left.
;; See https://colemakmods.github.io/ergonomic-mods/angle.html for more details.
(include defsrc/pc.kbd) ;; PC, standard finger assignment
;; (include defsrc/mac.kbd) ;; Mac, standard finger assignment
(include defsrc/pc_anglemod.kbd) ;; PC, ZXCVB are shifted to the left
;; (include defsrc/mac_anglemod.kbd) ;; Mac, ZXCVB are shifted to the left
;; (include defsrc/pc_wide_anglemod.kbd) ;; PC, angle-mod + right hand shifted by one key
;; (include defsrc/mac_wide_anglemod.kbd) ;; Mac, angle-mod + right hand shifted by one key
;;-----------------------------------------------------------------------------
;; `Base` layer: standard or dual keys? (layer-taps, homerow mods?)
;; If you just want angle mod, you still have to enable the standard base.
(include deflayer/base.kbd) ;; standard keyboard behavior
;; (include deflayer/base_lt.kbd) ;; layer-taps on both thumb keys
;; (include deflayer/base_lt_hrm.kbd) ;; layer-taps + home-row mods
;; Note: not enabling layer-taps here makes the rest of the file useless.
;;-----------------------------------------------------------------------------
;; `Symbols` layer
(include deflayer/symbols_noop.kbd) ;; AltGr stays as-is
;; (include deflayer/symbols_lafayette.kbd) ;; AltGr programmation layer like ErgoL
;; (include deflayer/symbols_noop_num.kbd) ;; AltGr stays as-is + NumRow layers
;; (include deflayer/symbols_lafayette_num.kbd) ;; AltGr prog layer + NumRow layers
;;-----------------------------------------------------------------------------
;; `Navigation` layer: ESDF or HJKL?
(include deflayer/navigation.kbd) ;; ESDF on the left, NumPad on the right
;; (include deflayer/navigation_vim.kbd) ;; HJKL + NumPad on [Space]+[Q]
;; Replace XX by the keyboard shortcut of your application launcher, if any.
;; Mapped on [Space]+[P] in both navigation layers.
;; (defalias run M-p) ;; [Command]-[P]
(defalias run XX) ;; do nothing
;;-----------------------------------------------------------------------------
;; Aliases for `Symbols` and `Navigation` layers
;; Depends on PC/Mac and keyboard layout
(include defalias/ergol_pc.kbd) ;; ErgoL PC
;; (include defalias/qwerty-lafayette_pc.kbd) ;; QwertyLafayette PC
;; (include defalias/qwerty_pc.kbd) ;; Qwerty / Colemak PC
;; (include defalias/qwerty_mac.kbd) ;; Qwerty / Colemak Mac
;; (include defalias/azerty_pc.kbd) ;; Azerty PC
;; (include defalias/qwertz_pc.kbd) ;; Qwertz PC
;; (include defalias/bepo_pc.kbd) ;; Bépo PC
;; (include defalias/optimot_pc.kbd) ;; Optimot PC
;;-----------------------------------------------------------------------------
;; Extra configuration
;; You should not modify this, only if you need to.
(defcfg
;; Enabled makes kanata process keys that are not defined in defsrc
;; Fixes altgr for Windows (see Arsenik issue #22)
process-unmapped-keys yes
windows-altgr cancel-lctl-press
)
;; vim: set ft=lisp: