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.

Revisions

  1. piskov revised this gist Aug 7, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions cmd to birman.json
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    "to_if_alone": [
    {
    "select_input_source": {
    "input_source_id": "^org.sil.ukelele.keyboardlayout.t.english-ilyabirmantypography$"
    "input_source_id": "^org.sil.ukelele.keyboardlayout.t.englishilyabirmantypography$"
    }
    }
    ]
    @@ -45,7 +45,7 @@
    "to_if_alone": [
    {
    "select_input_source": {
    "input_source_id": "^org.sil.ukelele.keyboardlayout.t.russian-ilyabirmantypography$"
    "input_source_id": "^org.sil.ukelele.keyboardlayout.t.russianilyabirmantypography$"
    }
    }
    ]
  2. piskov created this gist Mar 11, 2021.
    56 changes: 56 additions & 0 deletions cmd to birman.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    {
    "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$"
    }
    }
    ]
    }
    ]
    }
    ]
    }