feat: volume sliders, output device switching, About credits (1.1.0)
CI / macos-latest (push) Canceled after 0s
CI / ubuntu-latest (push) Canceled after 0s
CI / windows-latest (push) Canceled after 0s

- Per-app volume slider and a system volume card (slider + mute)
- Default output device picker; per-app output device picker
  (Windows via IPolicyConfig / IAudioPolicyConfigFactory, Linux via
  sink moves; macOS has no per-app routing API)
- Slider commands are coalesced on the audio thread
- Fix the Windows title-bar and taskbar icon (set via winit attributes)
- About: "by X4Lo" and a GitHub link
- README: app icon above the title
- --list prints output devices and system volume
- CI: run on master and on manual dispatch
This commit is contained in:
X4Lo committed 2026-11-15 21:25:10 +00:00
1 parent 8f476dbe52
commit c5cb407481
20 files changed
+1440 -138

No files matched your search

+10 -5
View File
@@ -1,5 +1,7 @@
<div align="center">
<img src="docs/assets/icon.png" alt="HushKey icon" width="96">
# HushKey
**One keystroke to mute any app. One more to mute everything.**
@@ -9,7 +11,7 @@ Bind global shortcuts to individual applications' audio and toggle them instantl
[![License: MIT](https://img.shields.io/badge/License-MIT-7b6bff.svg)](LICENSE.md)
![Platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-5b49f2)
![Rust](https://img.shields.io/badge/rust-stable-orange)
![Built with Claude Opus 5.5](https://img.shields.io/badge/built%20with-Claude%20Opus%205.5-orange)
<img src="docs/assets/main-window.webp" alt="HushKey main window" width="460">
@@ -22,6 +24,7 @@ Bind global shortcuts to individual applications' audio and toggle them instantl
- **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.
- **Volume and output devices.** A slider for every app and for the system volume, plus a picker to switch the default output device or send a single app to another device (e.g. Discord to the headset, music to the speakers).
- **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.
@@ -35,6 +38,8 @@ Bind global shortcuts to individual applications' audio and toggle them instantl
| 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](docs/design-decisions.md#macos-per-app-audio)) | ✅ |
| Per-app output device | ✅ | ❌ no public API | ✅ |
| System volume & default device | ✅ | ✅ | ✅ |
| Global shortcuts | ✅ | ✅ | ✅ X11 · ⚠️ Wayland ([details](docs/design-decisions.md#wayland-global-shortcuts)) |
| Tray icon | ✅ | ✅ menu bar | ✅ StatusNotifierItem |
| Status | Tested on hardware | Compile-checked, needs testers | Compile-checked, needs testers |
@@ -92,10 +97,10 @@ Command line: `hushkey --minimized` starts in the tray; `hushkey --list` prints
- [Design decisions](docs/design-decisions.md) — why Slint, platform limitations and workarounds
- [Contributing](CONTRIBUTING.md)
## Credits
Developed by X4Lo with the help of **Claude Opus 5.5** (Anthropic), which wrote the code and documentation from X4Lo's specification.
## License
[MIT](LICENSE.md). The UI is built with [Slint](https://slint.dev), used under its Royalty-free Desktop license (attribution is shown in the app's About section).
---
<sub>HushKey was created using Claude Opus 5.5.</sub>