Skip to content

Instantly share code, notes, and snippets.

@piskov
Created March 11, 2021 20:46
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save piskov/d20169dfae397c05b46e33d4042b0dbb to your computer and use it in GitHub Desktop.
Save piskov/d20169dfae397c05b46e33d4042b0dbb to your computer and use it in GitHub Desktop.
Command to birman layout switcher
{
"title": "Change keyboard layout on cmd press",
"rules": [
{
"description": "Change input source to En Birman by left_command; Ru Birman by right_command.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"to_if_alone": [
{
"select_input_source": {
"input_source_id": "^org.sil.ukelele.keyboardlayout.t.english-ilyabirmantypography$"
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"select_input_source": {
"input_source_id": "^org.sil.ukelele.keyboardlayout.t.russian-ilyabirmantypography$"
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment