Created with ❤️ by Dr Liang Jin
bash -c "$(curl -fsSL https://raw.githubusercontent.com/drliangjin/karabiner.d/master/tools/install)"
Introduction | Features | Installation | Resources | FAQ
This is my configuration for Karabiner-Elements, a powerful and low-level keyboard manipulation tool. Karabiner is one of the main reasons I choose to stay with macOS while there are too many troubles to implement the same/similar layout in GNU/Linux distributions (I really tried...maybe later...).
From | To | Press Alone | Device |
---|---|---|---|
Ctrl | Hyper | F17 | - |
Command | Option/Alt | F18 | Apple Keyboard |
Option/Alt | Command | F19 | Apple Keyboard |
Caps Lock | Ctrl | ESC | - |
Enter | Ctrl | Enter | - |
Shift | Shift | ( ) | - |
From | To | Press Alone | Device |
---|---|---|---|
Command + Tab |
Option/Alt + Tab |
- | - |
Shift + Command + Tab |
Shift + Option/Alt + Tab |
- | - |
Key | From | To (key_code) | Function |
---|---|---|---|
Ctrl g | NA |
Cancel | |
Ctrl w | Cut | ||
Ctrl y | Paste | ||
Ctrl / | Undo | ||
Ctrl s | Find | ||
Ctrl d | NA |
Forward Delete Char | |
Ctrl h | NA |
Backward Delete Char | |
Ctrl k | NA |
Forward Kill Line | |
Ctrl u | NA |
Backward Kill Line | |
Ctrl f | Forward Move Char | ||
Ctrl b | Backward Move Char | ||
Ctrl n | Next Line | ||
Ctrl p | Previous Line | ||
Ctrl a | Begining of Line | ||
Ctrl e | End of Line | ||
Ctrl v | Next Page | ||
Ctrl i | Indent | ||
Option/Alt g | NA | ||
Option/Alt w | Copy | ||
Option/Alt y | NA | ||
Option/Alt / | Redo | ||
Option/Alt d | Forward Kill Word | ||
Option/Alt h | Backward Kill Word | ||
Option/Alt k | Forward Copy Line | ||
Option/Alt u | Backward Copy Line | ||
Option/Alt f | Forward Move Word | ||
Option/Alt b | Backward Move Word | ||
Option/Alt n | NA | ||
Option/Alt p | NA | ||
Option/Alt a | NA | ||
Option/Alt e | NA | ||
Option/Alt v | Previous Page | ||
Option/Alt i | NA |
From | To | Press Alone | Device |
---|---|---|---|
Ctrl z + |
Option/Alt + Tab |
- | - |
Ctrl z + Tab |
Option/Alt + Tab |
- | - |
brew cask install karabiner-elements
- macOS workspace shortcuts (
ctrl left_arrow
&ctrl right_arrow
,ctrl #
) - macOS dock shortcuts (
ctrl F3
, then left_arrow or right_arrow to move,return
to open an item) - implement Tab as a modifier when hold down
- Ctrl + j and Ctrl + m
- Cycle clipboard history using Option/Alt + y
- delete to kill/cut (select text and cut, for words and lines)
-
undo
( Ctrl + / ) and redo ( Option/Alt + / ) - implement
to_if_held_down
andto_after_key_up
, see complex modifications example - implement virtual modifiers using
set_variable
andvariable_if
, see virtual-modifier from pqrs.org
- Text System Defaults and Key Bindings from Apple Developer
- Cocoa Text System by Jacob Rus
- Selector by Jacob Rus
- Default Mac OS X System Key Bindings
- A short article about emacs keybindings in macOS
- ttscoff's KeyBindings
- Emacs Keybindings Everywhere in Mac OS X by lelf
- Ukelele
- Mac OS X: Keybinding DefaultKeyBinding.dict Problems by Xah Lee