Skip to content

Instantly share code, notes, and snippets.

@Alex-Just
Created May 3, 2019 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alex-Just/04126f3004305fd83e6a100948a8c3b7 to your computer and use it in GitHub Desktop.
Save Alex-Just/04126f3004305fd83e6a100948a8c3b7 to your computer and use it in GitHub Desktop.
left_command -> English, right_command -> Russian
{
"rules": [
{
"description": "left_command -> English, right_command -> Russian",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"input_sources": [
{
"language": "ru"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_command"
}
],
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment