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

Karabiner-Elementsを使ってマウスにSafariのブラウザバック機能を設定する

Last updated at Posted at 2025-06-23

経緯🏞️

Mac純正のマウスではなく、バッファローのマウスを使用したいと思い、今回Karabiner-Elementsを使って実装したのでその内容を展開します。

実装内容🗒️

BUFFALOのマウスのサイドボタンを使ってSafariでブラウザバック、進むを設定する。

実装コード✏️

{
    "description": "Button 4: BrowserBack, Button 5: BrowserForward for Safari",
    "manipulators": [
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "^com\\.apple\\.Safari$"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "description": "button4",
            "from": { "pointing_button": "button4" },
            "to": [
                {
                    "key_code": "close_bracket",
                    "modifiers": ["command"]
                }
            ],
            "type": "basic"
        },
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "^com\\.apple\\.Safari$"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "description": "button5",
            "from": { "pointing_button": "button5" },
            "to": [
                {
                    "key_code": "non_us_pound",
                    "modifiers": ["command"]
                }
            ],
            "type": "basic"
        }
    ]
}

参考📕

公式Documentation
https://karabiner-elements.pqrs.org/docs/

Karabiner-Elementsで特定アプリの使用時のみキーバインドを変更する
https://www.870labo.com/posts/change-key-bind-with-karabiner-elements/

最後に

よかったら👍いただけると励みになります!

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