tools/mac

karabiner element ESC 입력시 자동 영문 변환하기

seul chan 2020. 4. 14. 23:36
{
  "title": "Convert to en when ESC",
  "rules": [
    {
      "description":"Convert to en when ESC",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "escape"
            }
          ],
          "to_after_key_up": [
            {
              "select_input_source": {
                "language": "en"
              }
            }
          ],
          "conditions": [ 
            { 
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.apple\\.Terminal$",
                "^com\\.googlecode\\.iterm2$",
                "^co\\.zeit\\.hyperterm$",
                "^co\\.zeit\\.hyper$",
                "^io\\.alacritty$",
                "^net\\.kovidgoyal\\.kitty$" 
              ]
            }
          ]
        }
      ]
    }
  ]
}

단점

  • 현재는 ESC를 두번 눌러야 됨
    • 한 번 눌렀을 때 한->영문, 두번 눌렀을 때 Normal 모드 -> 이건 해결된듯?
    • 다른 application 등 모든 환경에서 적용되는 문제