LoginSignup
4
2

More than 5 years have passed since last update.

Karabiner-ElementsでHHKBスタイルのカーソルキー(とhome/end)バインドを実現する

Posted at

概要

Macbook Pro 2016のカーソルキーが個人的にめちゃくちゃ使いにくいので、使い慣れたHHKBのキーバインドをKarabiner-Elementsで設定した。
デフォルトで用意されているVimバインド(Change right_shift+hjkl to arrow keys)をちょっと変えただけで簡単にできた。よかった。
ただ、returnキーがHHKBより短い(右Shiftの右端と;[/'が近い)気がするのでちょっと詰まる感じ。慣れるしか無い。

環境

MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)
macOS High Sierra 10.13.1
Karabiner-Elements 11.3.0

設定ファイル

~/.config/karabiner.jsonを開いて
complex_modifications > rulesに追加

karabiner.json
{
  "description": "Change right_shift+;/[' to arrow keys(HHKB style)",
  "manipulators": [
    {
      "from": {
        "key_code": "semicolon",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "left_arrow"
        }
      ],
      "type": "basic"
    },
    {
      "from": {
        "key_code": "slash",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "down_arrow"
        }
      ],
      "type": "basic"
    },
    {
      "from": {
        "key_code": "open_bracket",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "up_arrow"
        }
      ],
      "type": "basic"
    },
    {
      "from": {
        "key_code": "quote",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "right_arrow"
        }
      ],
      "type": "basic"
    },
    {
      "from": {
        "key_code": "k",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "home"
        }
      ],
      "type": "basic"
    },
    {
      "from": {
        "key_code": "comma",
        "modifiers": {
          "mandatory": ["right_shift"],
          "optional": ["any"]
        }
      },
      "to": [
        {
          "key_code": "end"
        }
      ],
      "type": "basic"
    }
  ]
}

参考

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2