1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

一般的なキーボードでHHKB風の矢印キー操作をKarabiner-Elementsで実現する方法

Last updated at Posted at 2025-04-02

HHKBから一般的なキーボードへ移行した際の課題

打鍵音を求めて HHKB(US配列)から ゲーミングキーボード(US配列)に移行したのだが、独立した矢印キーに慣れない。独立した矢印キーが無い点を問題視されがちな HHKBのUS配列だが、手が覚えてしまえば使いやすいのだ。

一応、Karabiner Elements には探せば Change right_cmd + hjkl to arrow keys という便利な Complex Modifications が用意されており、これはこれで便利なのだが、どうしても時折 Fn + [ ; ' / に手が伸びてしまう。

Karabiner-Elementsを用いた解決策

割と似た打鍵感を求めて、right_shift + (p l ; .) or (o, k, l, ,) を設定してみたら悪くなかった。どちらの形式が手に馴染むかは好みの差といったところか。。

[pl;.形式]
image.png

[okl,形式]
image.png

実現するには、Complex Modificationsadd your own rule に以下の設定をいれる。

image.png

[pl;.形式]

{
    "description": "HHKB like arrow operations",
    "manipulators": [
        {
            "from": {
                "key_code": "p",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "up_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "l",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "left_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "semicolon",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "right_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "period",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "down_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        }
    ]
}

[okl,形式]

{
    "description": "HHKB like arrow operations",
    "manipulators": [
        {
            "from": {
                "key_code": "o",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "up_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "k",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "left_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "l",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "right_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "key_code": "comma",
                "modifiers": {
                    "mandatory": ["right_shift"],
                    "optional": ["any"]
                }
            },
            "to": [
                {
                    "key_code": "down_arrow",
                    "modifiers": []
                }
            ],
            "type": "basic"
        }
    ]
}

まとめ

Karabiner-Elements のカスタム機能が強力で助かった。打鍵音が気に入った Gaming キーボードを使い慣れた HHKBの感覚に近づけることができた。

「パンが無いなら自分で焼けばいいじゃない」

終わり

1
0
3

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?