macOS mostly ignores the M4/M5 mouse buttons, commonly used for navigation. Third-party apps can bind them to ⌘+[ and ⌘+], but this only works in a small number of apps and feels janky. With this tool, your side buttons will simulate 3-finger swipes, allowing you to navigate almost any window with a history. As seen in the Logitech MX Master!
SaneSideButtons is a fork of the abandoned SensibleSideButtons by Alexei Baboulevitch. More information about SensibleSideButtons can be found on his website. Please consider using his Amazon affiliate link when making any purchase.
Starting with version 1.0.7 SaneSideButtons is maintained by Jan Hülsmann and offers native Apple Silicon support.
Download SaneSideButtons from here or install using Homebrew:
brew install --cask sanesidebuttons
To launch SaneSideButtons automatically when you log in on your Mac:
System Preferences
icon in the Dock or choose Apple menu > System Preferences.General
preference pane.Login Items
in the right preference pane.Open at Login
pane.SaneSideButtons
.