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
This commit is contained in:
commit
8f476dbe52
40 files changed
+11604
No files matched your search
@@ -0,0 +1,47 @@
|
||||
name: Bug report
|
||||
description: Something doesn't work as expected
|
||||
labels: [bug]
|
||||
body:
|
||||
- type: dropdown
|
||||
id: os
|
||||
attributes:
|
||||
label: Operating system
|
||||
options: [Windows, macOS, Linux]
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: os-version
|
||||
attributes:
|
||||
label: OS version
|
||||
placeholder: "Windows 11 23H2 / macOS 15.1 (Apple Silicon) / Ubuntu 24.04"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: linux-session
|
||||
attributes:
|
||||
label: "Linux only: session, desktop and audio server"
|
||||
placeholder: "wayland, GNOME 46, PipeWire (pactl info | grep 'Server Name')"
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: HushKey version
|
||||
description: Settings → About
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: what
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: What you pressed, what you expected, what actually happened. Mention your keyboard layout for shortcut issues.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: list
|
||||
attributes:
|
||||
label: Output of `hushkey --list`
|
||||
render: text
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Logs (`RUST_LOG=hushkey=debug`)
|
||||
render: text
|
||||
@@ -0,0 +1,22 @@
|
||||
name: Feature request
|
||||
description: Suggest an idea
|
||||
labels: [enhancement]
|
||||
body:
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: What problem would this solve?
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: idea
|
||||
attributes:
|
||||
label: Proposed solution
|
||||
- type: checkboxes
|
||||
id: platforms
|
||||
attributes:
|
||||
label: Which platforms does this matter on?
|
||||
options:
|
||||
- label: Windows
|
||||
- label: macOS
|
||||
- label: Linux
|
||||
@@ -0,0 +1,7 @@
|
||||
## What & why
|
||||
|
||||
## Tested on
|
||||
<!-- List what you actually ran, e.g. "Ran: Windows 11. Compile-checked: macOS. Not tested: Linux" -->
|
||||
|
||||
- [ ] `cargo fmt`, `cargo clippy --all-targets -- -D warnings` and `cargo test` pass
|
||||
- [ ] Docs updated if behaviour or platform support changed
|
||||
@@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest, macos-latest, ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy, rustfmt
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Linux system dependencies
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y pkg-config libpulse-dev libfontconfig1-dev libxkbcommon-dev
|
||||
- name: Format
|
||||
run: cargo fmt --all --check
|
||||
- name: Clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
- name: Test
|
||||
run: cargo test
|
||||
- name: Release build
|
||||
run: cargo build --release
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hushkey-${{ runner.os }}
|
||||
path: |
|
||||
target/release/hushkey
|
||||
target/release/hushkey.exe
|
||||
if-no-files-found: ignore
|
||||
Reference in new issue
Block a user