Prerequisite

Final Goal

  • Press Left Command to set Mac's input method to English.
  • Press Right Command to set Mac's input method to Korean.
  • Any other shortcut combinations would perform as normal.

Instructions

  • Go to ~/.config/karabiner/assets/complex_modifications. You can Command+Shift+G within Finder to open a goto window.
  • Create a JSON file like the following here (open any text editor and save it as filename.json).
{
  "title": "Multilingual Input Methods",
  "rules": [
    {
      "description": "R Command to 한글",
      "manipulators": [
        {
          "type": "basic",
          "from": {
              "key_code": "right_command",
              "modifiers": {"optional": ["any"]}
            },
          "to": [{"key_code": "right_command", "lazy": true}],
          "to_if_alone": [{"select_input_source": { "language": "^ko$" }}]
        }
      ]
    },
    {
      "description": "L Command to English",
      "manipulators": [
        {
          "type": "basic",
          "from": {
              "key_code": "left_command",
              "modifiers": {"optional": ["any"]}
            },
          "to": [{"key_code": "left_command", "lazy": true}],
          "to_if_alone": [{"select_input_source": { "language": "^en$" }}]
        }
      ]
    }
  ]
}
  • Go to Karabiner-Elements.app → Complex Modifications and press add rules.
  • Click the rules that you want to enable. The above text file will show under Multilingual Input Methods.

Configuring more languages

You’ve successfully subscribed to Sunghyun Cho
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.