home: auto-duck Spotify while speaking on Discord voice

Add a systemd user service (spotify-duck.py) that meters Discord's output
stream and the denoised rnnoise mic via pw-record and lowers Spotify's volume
via wpctl while anyone is speaking, restoring it a beat after silence. Tuning
knobs are exposed as service Environment entries. Ignore Python __pycache__.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-31 10:29:25 +01:00
parent 3a53f5bf89
commit 72fe33250d
4 changed files with 300 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ in
imports = [
inputs.illogical-flake.homeManagerModules.default
inputs.spicetify-nix.homeManagerModules.spicetify
./spotify-ducking.nix
];
home.username = "zephrynis";