Karabiner-Elements script "Switch input source language" left_command -> English, right_command -> Russian
{
"title": "Switch input source language",
"rules": [
{
"description": "left_command -> English, right_command -> Russian",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_command"
}
],
"to_if_alone": [
{
"key_code": "1",
"modifiers": [
"left_command",
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"key_code": "2",
"modifiers": [
"left_command",
"left_shift"
]
}
]
}
]
}
]
}