Skip to content

Instantly share code, notes, and snippets.

@nlopin
Created June 24, 2019 13:37
Show Gist options
  • Save nlopin/a62df6aa43db6bd13a61b74656300515 to your computer and use it in GitHub Desktop.
Save nlopin/a62df6aa43db6bd13a61b74656300515 to your computer and use it in GitHub Desktop.
Karabiner: Non modal language switch to RU and EN
{
"title": "Non-modal input language change",
"rules": [
{
"description": "Switch to RU",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to_if_alone": [
{
"select_input_source": {
"language": "ru"
}
}
],
"type": "basic"
}
]
}, {
"description": "Switch to EN",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "ru"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to_if_alone": [
{
"select_input_source": {
"language": "en"
}
}
],
"type": "basic"
}
]
}
]
}
@nlopin
Copy link
Author

nlopin commented Jun 24, 2019

One more config for language switch. Left CMD → Eng, Right CMD → RU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment