Questions
How to use mouse side buttons on a Mac
The two buttons on the side of most mice are Button 4 and Button 5. On Windows they go back and forward. On a Mac they often seem dead, because macOS passes them to the app in front and leaves each app to decide, and many apps have no job for them. macOS itself can only put Mission Control, app windows, or Show Desktop on them. I built InputConfig, a free app, and it reads those buttons from any mouse, no vendor app needed, and gives each one any job you pick: back and forward, a keyboard shortcut, a macro, dictation, a Siri Shortcut, or a different job in every app.
Steps
- Add a Mouse row and Scan the side button.
- Choose the output.
- Activate.
Set it up
- Install InputConfig and allow Accessibility access.
- Add a row with the input type Mouse, kind Button, and pick Scan in the button menu. Click the side button.
- Choose the output. Command left bracket and Command right bracket give back and forward in browsers and the Finder.
- Activate.
The built-in keyboard and mouse input preset is a starting point.
InputConfig is free on the Mac App Store. macOS 14 or later, no account, no tracking, open source.
Per-app layouts and double clicks
Make one preset per app and turn on auto-switch, and the side buttons change jobs when the app changes: tabs in the browser, undo and redo in an editor. A double click on a side button is its own input, so each button can carry two actions.
It adds, it does not replace
A button keeps whatever it already did, and InputConfig adds a job on top, which is why side buttons, which usually do nothing, are the best ones to use. The same goes for apps that already answer a side button: if a button goes back on its own in one app, adding Command left bracket there makes it go back twice. Click each button in the apps you use first, then leave any app that already handles it out of the preset with auto-switch. For the same reason InputConfig cannot switch a button off. It does not change scrolling speed, smooth scrolling, pointer acceleration, or DPI; apps such as LinearMouse, Mac Mouse Fix, and SteerMouse, or the mouse maker's own software, handle those, and they run fine alongside.
What macOS does on its own
Before installing anything, look in System Settings > Desktop & Dock and press Shortcuts near the bottom. Depending on your mouse, a second column of menus appears beside the keyboard ones, and it can put Mission Control, Application windows, or Show Desktop on a mouse button. If that is all you want, you are done.
What macOS cannot do is give a side button a keyboard shortcut, so back and forward in Safari and the Finder, copy and paste, or switching Spaces all need an app. System Settings > Mouse only swaps the left and right buttons.
Good jobs for two side buttons
- Back and forward: Command left bracket and Command right bracket. That is Back and Forward in Safari, Chrome, and the Finder. Add a Mouse row for each side button, Scan it, and give it the shortcut.
- Switch Spaces: Control left arrow and Control right arrow, the macOS shortcuts for the Space to the left and right.
- Copy and paste: Command C on one, Command V on the other.
- Undo and redo in an editor: Command Z and Shift Command Z.
- Mission Control, Spotlight, Launchpad, Play / Pause, volume, lock screen as system functions, no shortcut needed.
- Dictation on a thumb button, which is how I dictate most of what I write.
- A Siri Shortcut, an app, or a web page, opened with one click.
- A macro: a timed series of keys and clicks, or a line of text typed for you.
Each button can carry three of these at once: a click, a hold past a threshold, and a double click, which on a Mouse row is its own input, so the single click is not delayed.
When the side buttons do nothing at all
- See what the Mac receives. Add a Mouse row, pick Scan in its button menu, and click the side button. If the row changes to Button 4, Button 5, or a higher number, the mouse is sending a standard button and InputConfig can use it. The Live Visualizer's Mouse & Trackpad template lights the side buttons too.
- If nothing registers, check the mouse maker's app. A tool such as Logi Options+ can give a button its own job, and then the click may never reach macOS as Button 4. Set that button back to its default in the maker's app, or quit the app, and scan again.
- Some buttons are not standard buttons. DPI switches, profile buttons, and some thumb or gesture buttons talk only to the maker's software. Nothing else can read those, InputConfig included.
- Give the button a job and press Activate. The preset has to be running; the side buttons work in every app while it runs.
The whole back button problem, Safari and the Finder in particular, has its own page: mouse back button not working on a Mac.
InputConfig and the other mouse apps
| App | What it is best at |
|---|---|
| macOS Desktop & Dock shortcuts | Mission Control, app windows, or Show Desktop on a mouse button. Built in. |
| SensibleSideButtons | Back and forward on Button 4 and 5 everywhere, and nothing else. Free and open source. |
| LinearMouse, Mac Mouse Fix, SteerMouse | The feel of the mouse: scroll direction and smoothness, pointer speed and acceleration, plus button actions. |
| Logi Options+, Razer and other maker apps | Their own mice: DPI, lighting, onboard profiles, and buttons only the maker's app can see. |
| InputConfig | Any job on any standard button, per app, with holds, double clicks, macros, Siri Shortcuts, and dictation. The same preset can hold keyboard, game controller, and MIDI rows. Free, open source, no account. |
They run side by side. I use InputConfig for what the buttons do and leave scrolling and pointer speed to a mouse app.
Questions
Do Logitech side buttons work without Logi Options+?
If the mouse reports them as standard buttons 4 and 5, yes. Check with the Live Visualizer's Mouse & Trackpad template: press the button and see whether it lights.
Can the thumb button on an MX Master be remapped?
Only if it reports as a standard button. Some vendor buttons send their own signal that only the vendor's app reads; the Live Visualizer shows which kind yours is.
Is it free?
Yes. InputConfig is free and open source, with nothing locked.
How do I make mouse side buttons go back and forward on a Mac?
Bind one side button to Command left bracket and the other to Command right bracket in InputConfig. That is back and forward in Safari, Chrome and the Finder. The built-in Keyboard & Mouse Input preset already sets both side buttons to back and forward.
Do Razer, Redragon, or other gaming mice side buttons work on a Mac?
The two side buttons on most gaming mice report as standard buttons 4 and 5, so they work without the maker's software. Scan them in InputConfig to check. DPI and profile buttons usually talk only to the maker's app.
Can a side button switch desktops (Spaces)?
Yes. Bind one side button to Control left arrow and the other to Control right arrow, the macOS shortcuts for moving one Space left or right.
Can I use buttons 6, 7, and 8?
Yes, if the mouse reports them as standard buttons. The button menu on a Mouse row lists up to Button 8, and Scan catches any extra button macOS sees.
Can I turn a side button off?
Not with InputConfig. It listens alongside macOS and adds a job, so the button's own click still happens. To stop a button entirely, use the mouse maker's app or a tool that changes buttons, such as Karabiner-Elements.
Why don't my mouse side buttons work on a Mac?
macOS passes Button 4 and Button 5 to the app in front, and many Mac apps have no job for them, so they seem dead. The mouse is usually fine. An app such as InputConfig can give them a job in every app.
Related
Free. macOS 14 or later. No account, nothing leaves your Mac. Open source on GitHub.