Skip to content

Instantly share code, notes, and snippets.

@ohshhh
Last active October 29, 2017 14:18
Show Gist options
  • Save ohshhh/feebb969a2fcd3b7b820c13f70b313fd to your computer and use it in GitHub Desktop.
Save ohshhh/feebb969a2fcd3b7b820c13f70b313fd to your computer and use it in GitHub Desktop.
karabiner-elements complex config
"complex_modifications": {
"rules": [
{
"manipulators": [
{
"description": "Ctrl+Tab to Cmd+Tab",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [{
"key_code": "tab",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"description": "Cmd+Tab to Ctrl+Tab",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"any"
]
}
},
"to": [{
"key_code": "tab",
"modifiers": ["left_control"]
}],
"type": "basic"
}
]
}
]
},
The configuration file can be found in ~/.config/karabiner/karabiner.json and you see the modification directly after saving. (In your Karabiner-Elemnts window you can see in the Log tab what's happening).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment