Razer Deathadder Back/Forward buttons in Big Sur Apple M1

Solution 1:

I ended up getting this to work with BetterTouchTool. Not ideal since it costs money, but at least my mouse works now?

BetterTouchTool settings

I'm a bit dumbfounded that functionality like this isn't built into the OS and is delegated to a premium third party application.

Another (free) option I found is to use Karabiner-Elements with the following added to ~/.config/karabiner/karabiner.json:

          {
            "manipulators": [
              {
                "description": "Mouse button4 → Command + [",
                "conditions": [
                  {
                    "bundle_identifiers": ["^com\\.microsoft\\.VSCode"],
                    "type": "frontmost_application_unless"
                  }
                ],
                "from": {
                  "pointing_button": "button4",
                  "modifiers": {
                    "optional": ["any"]
                  }
                },
                "to": [
                  {
                    "key_code": "open_bracket",
                    "modifiers": ["left_command"]
                  }
                ],
                "type": "basic"
              },
              {
                "description": "Mouse button5 → Command + ]",
                "conditions": [
                  {
                    "bundle_identifiers": ["^com\\.microsoft\\.VSCode"],
                    "type": "frontmost_application_unless"
                  }
                ],
                "from": {
                  "pointing_button": "button5",
                  "modifiers": {
                    "optional": ["any"]
                  }
                },
                "to": [
                  {
                    "key_code": "close_bracket",
                    "modifiers": ["left_command"]
                  }
                ],
                "type": "basic"
              }
            ]
          }

(Note the exceptions for Visual Studio Code; it handles the mouse back/forward buttons natively)