Skip to content

Instantly share code, notes, and snippets.

@Mitrichius
Last active November 5, 2021 14:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Mitrichius/8de077a2f29b9af296d5e8744b8b92ba to your computer and use it in GitHub Desktop.
Save Mitrichius/8de077a2f29b9af296d5e8744b8b92ba to your computer and use it in GitHub Desktop.
Karabiner-Elements non-modal layout switcher (comlex modification rule)
{
"title": "Non-modal layout switcher",
"rules": [
{
"description": "CapsLock->RU, RightShift+CapsLock->EN",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock"
},
"to": [
{
"select_input_source": {
"language": "ru"
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"select_input_source": {
"language": "en"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment