Skip to content
panda0x-devPublic

About

Lightweight native macOS menu bar app to map mouse side buttons to Volume +, Volume −, and Mute

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

SideVol — macOS Mouse Side Button Volume Controller

Latest Release macOS 13.0+ Swift 5.9+ Zero Dependencies MIT License

SideVol is a tiny, native macOS menu bar utility that turns your mouse's side buttons into instant Volume +, Volume −, and Mute controls — with zero third-party dependencies and minimal system permissions.

SideVol Menu Bar UI and Floating Volume HUD


Why SideVol?

Feature Details
Instant Side-Button Volume Maps Side Forward (Button 5) → Volume + and Side Back (Button 4) → Volume − out of the box.
Volume-Only Side Buttons Automatically consumes mapped side-button clicks so browsers and Finder never accidentally go Back/Forward.
Flexible Mapping & Swap One-click Swap, Middle Click / Buttons 6–8 support, optional Mute button, plus a live Last pressed button detector.
Hold-to-Repeat Press and hold a side button to smoothly ramp system volume up or down.
16-Segment Volume HUD Translucent, non-intrusive floating HUD on the active display (toggleable).
Step Size Presets Quick presets (3%, 6.25%, 10%, 12.5%) plus a fine-grained slider (2%–15%).
Live CoreAudio Sync Stays synced with macOS keyboard volume keys and active output device changes (Speakers, AirPods, HDMI, USB DACs).
Native & Lightweight Pure SwiftUI + CoreAudio + CoreGraphics, LSUIElement menu bar app with native Launch at Login (SMAppService).

Install

Option 1: Download Prebuilt App

  1. Download SideVol-macOS.zip from the Latest Release.
  2. Unzip and drag SideVol.app into your /Applications folder.
  3. Open SideVol from /Applications.

Option 2: Build from Source

Requires macOS 13.0+ and Xcode Command Line Tools (xcode-select --install).

git clone https://github.com/anilsahin-dev/SideVol.git
cd SideVol
chmod +x scripts/build-app.sh
./scripts/build-app.sh
cp -R dist/SideVol.app /Applications/
open /Applications/SideVol.app

Permissions & Privacy

SideVol is built with privacy first — no network access, no analytics, no keyboard listeners, and no file access.

  1. Click the SideVol icon in your menu bar.
  2. Click Open Settings → macOS opens System Settings → Privacy & Security → Accessibility.
  3. Toggle SideVol on. (If it isn't listed yet, click Show App in SideVol and drag SideVol.app into the Accessibility list.)
  4. SideVol detects the permission automatically within 1–2 seconds — no restart needed.
Troubleshooting: Permission toggle is on, but side buttons don't respond

Because local/open-source builds are ad-hoc signed, macOS can occasionally cache an older app signature if you rebuild SideVol.app:

  1. Open System Settings → Privacy & Security → Accessibility.
  2. Select SideVol, click the − button to remove the stale entry.
  3. Click + (or drag /Applications/SideVol.app into the list) and re-enable it.

Architecture

SideVol/
├── Package.swift               # SwiftPM manifest (macOS 13+, zero dependencies)
├── Resources/
│   └── Info.plist              # Menu-bar-only bundle metadata (LSUIElement)
├── Sources/SideVol/
│   ├── SideVolApp.swift        # MenuBarExtra entry point & dynamic status icon
│   ├── MenuBarView.swift       # SwiftUI popover UI & live button detector
│   ├── MouseEventMonitor.swift # CGEventTap (.listenOnly / .defaultTap) & repeat timer
│   ├── AudioController.swift   # CoreAudio volume/mute control & property listeners
│   ├── VolumeHUD.swift         # Floating 16-segment translucent HUD panel
│   └── SettingsStore.swift     # UserDefaults & SMAppService Launch at Login
└── scripts/
    ├── build-app.sh            # Builds release binary, icon, bundle & ad-hoc signature
    └── generate-icon.swift     # Programmatically renders AppIcon.icns

License

MIT © 2026 SideVol Contributors — see LICENSE.

About

Lightweight native macOS menu bar app to map mouse side buttons to Volume +, Volume −, and Mute

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages