Created
October 9, 2019 08:23
-
-
Save Zornell/a73c4743e50bdd57ffd38e0b55821c7a to your computer and use it in GitHub Desktop.
Complex Rules definition for Karabiner-Elements to switch between profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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