Files
HushKey/README.md
T
X4Lo 8f476dbe52 feat: HushKey 1.0.0 — per-app mute hotkeys for Windows, macOS and Linux
Native Rust tray app that binds global shortcuts to mute/unmute
individual applications' audio, plus a Mute All / Restore All shortcut.

- AudioController trait with per-OS backends: WASAPI sessions (Windows),
  Core Audio process taps (macOS 14.2+, mute only), PulseAudio/PipeWire
  sink inputs (Linux)
- Dedicated audio thread; hotkey presses go straight to it
- Snapshot-based Mute All that restores exactly the previous state
- Slint UI with software renderer; window destroyed on close
- Non-activating on-screen confirmation and tray icon flash
- TOML config, launch at login, start minimized, dark/light theme
- Procedurally drawn icon embedded into the Windows executable
- Docs, AGENTS.md, CLAUDE.md, contributing guide and CI for all three OSes
2026-11-14 04:26:05 +00:00

4.7 KiB

HushKey

One keystroke to mute any app. One more to mute everything.

Bind global shortcuts to individual applications' audio and toggle them instantly — even while a fullscreen game has focus. A tiny native tray app for Windows, macOS and Linux.

License: MIT Platforms Rust

HushKey main window

Features

  • Per-app mute shortcuts. Every app with an audio session (playing or idle) shows up; click Set shortcut, press a combo, done. The same shortcut toggles mute/unmute.
  • Mute All. One shortcut silences every app. Press it again to restore exactly the previous state — apps you had muted yourself stay muted. An optional second shortcut can be set to restore only. Apps that start playing while Mute All is on are silenced too.
  • Works everywhere. Shortcuts are system-wide and fire while HushKey is hidden in the tray and while games or fullscreen apps have focus.
  • Instant feedback. A small, click-through on-screen confirmation (it never steals focus from your game), plus a tray-icon flash.
  • Light on resources. Native Rust with a software-rendered UI — no browser engine. The window is destroyed when closed, so the tray-resident app holds only the tray icon, the hotkey listener and an idle audio thread. Idle CPU is zero: nothing polls while the window is hidden.
  • Safe muting. Uses the OS mixer's own mute flag rather than setting volume to 0, so your volume levels are never lost — even if HushKey crashes.
  • Persistent. Bindings and settings live in a small TOML file in your OS config directory.
  • Dark mode by default, light mode toggle, launch-at-login, start-minimized.

Platform support

Windows 10/11 macOS 14.2+ Linux
Detect apps with audio ✅ WASAPI sessions ✅ Core Audio process objects ✅ PulseAudio / PipeWire sink inputs
Per-app mute ✅ ✅ via process taps ✅
Per-app volume level ✅ ❌ no public API (why) ✅
Global shortcuts ✅ ✅ ✅ X11 · ⚠️ Wayland (details)
Tray icon ✅ ✅ menu bar ✅ StatusNotifierItem
Status Tested on hardware Compile-checked, needs testers Compile-checked, needs testers

Install

Pre-built binaries will be published on the Releases page. Until then, build from source.

Build from source

You need the stable Rust toolchain. Full per-platform notes are in docs/building.md.

Windows

cargo build --release

The binary is target\release\hushkey.exe. No runtime dependencies.

macOS

cargo build --release

Per-app muting needs macOS 14.2+ and the Screen & System Audio Recording permission. To get the permission prompt, run HushKey from an app bundle that has NSAudioCaptureUsageDescription set. See docs/building.md.

Linux (Debian/Ubuntu shown)

sudo apt install build-essential pkg-config libpulse-dev libfontconfig1-dev libxkbcommon-dev
cargo build --release

Needs a PulseAudio server, or PipeWire with pipewire-pulse (the default on modern distros). On GNOME, the tray icon needs the AppIndicator and KStatusNotifierItem Support extension.

Usage

  1. Launch HushKey. It sits in the tray; click the icon to open the window.
  2. Click Set shortcut next to an app and press a combination such as Ctrl + Alt + S. Letters and digits need Ctrl, Alt or Win/Cmd so normal typing isn't hijacked; F-keys can be used alone.
    • Esc cancels, Backspace removes the shortcut.
  3. Set a Mute everything shortcut in the card at the top.
  4. Close the window — HushKey keeps running in the tray. Quit from the tray menu.

Command line: hushkey --minimized starts in the tray; hushkey --list prints the detected audio apps (useful for bug reports).

Documentation

License

MIT. The UI is built with Slint, used under its Royalty-free Desktop license (attribution is shown in the app's About section).


HushKey was created using Claude Opus 5.5.