-
-
Save rtm-ctrlz/e5eb53d0ed968c4b46156668990cfa20 to your computer and use it in GitHub Desktop.
This file contains 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": "Language toggler", | |
"rules": [ | |
{ | |
"description": "Left_Shift+Left_Command language toggle (en->ru->de->en...)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "en" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"mandatory": [ | |
"left_command" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"select_input_source": { | |
"language": "ru" | |
} | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "ru" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"mandatory": [ | |
"left_command" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"select_input_source": { | |
"language": "de" | |
} | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "de" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift", | |
"modifiers": { | |
"mandatory": [ | |
"left_command" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"select_input_source": { | |
"language": "en" | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you're a life savior! thanks man!