Skip to content

Instantly share code, notes, and snippets.

@Zornell
Created October 9, 2019 08:23
Show Gist options
  • Save Zornell/a73c4743e50bdd57ffd38e0b55821c7a to your computer and use it in GitHub Desktop.
Save Zornell/a73c4743e50bdd57ffd38e0b55821c7a to your computer and use it in GitHub Desktop.
Complex Rules definition for Karabiner-Elements to switch between profiles
{
"title": "Switch Profiles",
"rules": [
{
"description": "Switch to profile Neo2",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"left_gui"
]
}
},
"to": [
{
"shell_command": "/Library/Application\\ Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli --select-profile Neo2"
}
]
}
],
"description": "Switch to profile Neo2_VBox",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"left_gui"
]
}
},
"to": [
{
"shell_command": "/Library/Application\\ Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli --select-profile Neo2_VBox"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment