Skip to content

Instantly share code, notes, and snippets.

@mikesorae
Last active November 16, 2020 08:04
Show Gist options
  • Save mikesorae/db27b001f4c0e25827ea0979e5755ee1 to your computer and use it in GitHub Desktop.
Save mikesorae/db27b001f4c0e25827ea0979e5755ee1 to your computer and use it in GitHub Desktop.
Karabiner custom modification setting for Japanese with US Keyboard
{
"title": "US Keyboard for Japanese",
"rules": [
{
"description": "右Optionキーを単体で押したときにかなキーを送信する",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 10
},
"to": [
{
"key_code": "right_option",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"to_if_held_down": [
{
"key_code": "right_option"
}
]
}
]
}
]
}
@mikesorae
Copy link
Author

A much better way.

{
  "title": "US Keyboard for Japanese",
  "rules": [
    {
      "description": "f13を押したときにかなキーを送信する",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "f13",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "japanese_kana"
            }
          ]
        }
      ]
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment