Configuration for Karabiner-Elements, a keyboard customizer for macOS.
brew install --cask karabiner-elementsRemaps Caps Lock into a modifier layer:
| Key | Action |
|---|---|
| Caps Lock (tap) | Esc |
| Caps Lock+HJKL | Arrow keys (vim-style) |
| Caps Lock+[ | Esc |
| Caps Lock+Enter | Toggle Caps Lock |
| Caps Lock (held too long) | Nothing |
After installing the dotfiles, open Karabiner and navigate to
Complex Modifications > Add predefined rules, then enable the desired options:
