-
-
Save daniepetrov/b3367380a03c3fc73995fd638b99efef 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": "Language toggler on SHIFTS", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"input_source_id": "com.apple.keylayout.Australian" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "com.apple.keylayout.RussianWin" | |
} | |
} | |
] | |
}, | |
{ | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"input_source_id": "com.apple.keylayout.RussianWin" | |
} | |
] | |
} | |
], | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_shift", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "com.apple.keylayout.Australian" | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment