Skip to content

Instantly share code, notes, and snippets.

@piskov
Last active August 7, 2024 13:43
Show Gist options
  • 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