From 99d9d6bcc5ae0f1bd13ceab45fbd185ec67c6f9b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 21 May 2026 20:16:34 -0400 Subject: feat(notify): add --silent flag, volume knob, and level sound files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The touchpad toggle's notification was too loud, and the eight notify sounds varied by ~13 dB in RMS loudness — bug and fail came out two to three times louder than info or security. I added a --silent flag to notify (shows the popup, plays no sound) and a NOTIFY_VOLUME knob (paplay scale, default 65536) so the master level can drop without re-encoding. toggle-touchpad now passes --silent on both enable and disable. normalize-notify-sounds.sh measures each .ogg and shifts it to a uniform -31 dB mean. It writes through the file instead of mv-ing over it, so the stow symlinks survive when the script runs against the live sound dir. I re-encoded all eight sounds to the new level. Tests: a new tests/notify suite (12 tests) covers --silent, the volume knob, flag composition, and the error paths. --- dotfiles/common/.local/share/sounds/notify/bug.ogg | Bin 10187 -> 8522 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'dotfiles/common/.local/share/sounds/notify/bug.ogg') diff --git a/dotfiles/common/.local/share/sounds/notify/bug.ogg b/dotfiles/common/.local/share/sounds/notify/bug.ogg index 6842082..a1bfb03 100644 Binary files a/dotfiles/common/.local/share/sounds/notify/bug.ogg and b/dotfiles/common/.local/share/sounds/notify/bug.ogg differ -- cgit v1.2.3