0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOSシステム設定:US 配列 キーボードマッピング

Posted at

Macbook US 配列 と HHKB US 配列 を快適に使うキーボードマッピングの設定方法をまとめます。

macOS は コントロール + スペースで かな <-> 英字 と切り替えが可能です。
自分は、左コントロール(単独) -> 英字、右シフト(単独) -> かな に切り替えで運用しています。

  • macOS システム設定のキーボード修飾キーの設定
  • Karabiner-Elements アプリで かな入力と英字入力の切り替えを設定
  1. Karabiner-Elements アプリをインストールします
    https://karabiner-elements.pqrs.org

インストールが終わったら、アナウンスに従ってバックグラウンドでの実行の許可、入力監視の許可をします。

~/.config/karabiner/karabiner.json にコピペします。

{
    "global": { "show_in_menu_bar": false },
    "profiles": [
        {
            "complex_modifications": {
                "rules": [
                    {
                        "description": "Right Shift alone -> Kana",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "right_shift",
                                    "modifiers": { "optional": ["any"] }
                                },
                                "to": [{ "key_code": "right_shift" }],
                                "to_if_alone": [{ "key_code": "japanese_kana" }],
                                "type": "basic"
                            }
                        ]
                    },
                    {
                        "description": "Left Control alone -> Eisu",
                        "manipulators": [
                            {
                                "from": {
                                    "key_code": "left_control",
                                    "modifiers": { "optional": ["any"] }
                                },
                                "to": [{ "key_code": "left_control" }],
                                "to_if_alone": [{ "key_code": "japanese_eisuu" }],
                                "type": "basic"
                            }
                        ]
                    }
                ]
            },
            "name": "Default profile",
            "selected": true,
            "simple_modifications": [
                {
                    "from": { "key_code": "caps_lock" },
                    "to": [{ "key_code": "left_control" }]
                }
            ],
            "virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
        }
    ]
}
  1. macOS システム設定のキーボード修飾キーの設定
  • Apple内蔵キーボード
    スクリーンショット 2025-04-22 0.25.11.jpg

  • Karabiner DriverKit
    スクリーンショット 2025-04-22 0.25.23.jpg

  • HHKB
    スクリーンショット 2025-04-22 0.25.28.jpg

それぞれのキーボードを設定すれば OKです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?