Skip to content

Instantly share code, notes, and snippets.

@cleverfox
Forked from piskov/cmd to birman.json
Created December 2, 2023 08:42
Show Gist options
  • Save cleverfox/de18261d1e97d6020c7a1dba06b5169e to your computer and use it in GitHub Desktop.
Save cleverfox/de18261d1e97d6020c7a1dba06b5169e 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