Skip to content

Instantly share code, notes, and snippets.

@noma4i
Created July 30, 2019 09:47
Show Gist options
  • Save noma4i/91765f432f777c690aa3bddae37cfe3e to your computer and use it in GitHub Desktop.
Save noma4i/91765f432f777c690aa3bddae37cfe3e to your computer and use it in GitHub Desktop.
{
"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