A powerful and stable keyboard customizer for macOS
open sourceUnlicensefree
Karabiner-Elements is a free, open source keyboard customizer for macOS by Takayama Fumihiko (pqrs.org). Simple modifications change one key into another from a settings window; complex modifications are JSON rules (or JavaScript that generates them) that turn a key into a combination of modifiers, send a different key when one is tapped alone or pressed with another, add mouse keys, Vi or Emacs bindings anywhere, or launch apps from a key. Rules can apply to particular keyboards only, profiles switch between setups, and a community library of predefined rules can be imported. It runs on Intel and Apple silicon Macs and also enables extra keys of PC keyboards that macOS doesn't recognise.
Problems it solves
- I want caps lock to work as control or escape on my Mac
- make caps lock act as escape when tapped and control when held
- remap keys only on my external PC keyboard and leave the MacBook's built-in one alone
- launch apps with my own keyboard shortcuts on macOS
- use Vi-style hjkl arrow keys in every Mac app
- stop myself quitting apps by accidentally pressing command-q
- the Japanese language keys on my PC keyboard don't do anything on my Mac
- turn the F1-F12 keys into media controls, or the other way round, per keyboard
- set up a hyper key combining several modifiers for my own shortcuts
- switch between different keyboard layouts and remapping profiles quickly
- disable the built-in laptop keyboard when an external keyboard is plugged in
Features
- simple modifications: change one key to another from the GUI
- complex modifications: JSON rules for modifier combos, tap-alone and simultaneous keys
- write rules in JavaScript that generates complex modifications
- community library of predefined rules to import
- per-device rules and multiple profiles
- function keys to media controls
- mouse keys
- works with Secure Keyboard Entry
- extra key support for PC, international and language keys
- EventViewer to check key events
View 2 more
- command line interface
- Intel and Apple silicon Macs
Limitations
- Can't modify the fn key on non-Apple keyboards such as Logitech's: those keyboards handle fn internally1
- Can't modify the eject key on some keyboards, such as the Apple Wired Keyboard, because of a macOS API limitation1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Karabiner-Elements does.
- BetterTouchTool Customize trackpad gestures, the mouse, keyboard shortcuts, the menu bar, Stream Deck and more
- Kanata Cross-platform software keyboard remapper with layers, tap-hold and macros
