aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-21 20:16:34 -0400
committerCraig Jennings <c@cjennings.net>2026-05-21 20:16:34 -0400
commitf7079db3aa3e0073df6ce5409d4b6de0a431e26f (patch)
treee6ed90fdbd40c0122c4a2cd6c4ac25b34cb02be6 /dotfiles/hyprland
parentd6fa23bb592ce4184c3a8b62de5cb6826f874ee2 (diff)
downloadarchsetup-f7079db3aa3e0073df6ce5409d4b6de0a431e26f.tar.gz
archsetup-f7079db3aa3e0073df6ce5409d4b6de0a431e26f.zip
feat(notify): add --silent flag, volume knob, and level sound files
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.
Diffstat (limited to 'dotfiles/hyprland')
-rwxr-xr-xdotfiles/hyprland/.local/bin/toggle-touchpad4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/hyprland/.local/bin/toggle-touchpad b/dotfiles/hyprland/.local/bin/toggle-touchpad
index cab605b..ed11674 100755
--- a/dotfiles/hyprland/.local/bin/toggle-touchpad
+++ b/dotfiles/hyprland/.local/bin/toggle-touchpad
@@ -14,11 +14,11 @@ state=$(cat "$STATE_FILE")
if [ "$state" = "enabled" ]; then
hyprctl keyword "device[$TOUCHPAD]:enabled" false >/dev/null
echo "disabled" > "$STATE_FILE"
- notify info "Touchpad" "Disabled"
+ notify info "Touchpad" "Disabled" --silent
else
hyprctl keyword "device[$TOUCHPAD]:enabled" true >/dev/null
echo "enabled" > "$STATE_FILE"
- notify info "Touchpad" "Enabled"
+ notify info "Touchpad" "Enabled" --silent
fi
# Refresh the waybar indicator immediately (custom/touchpad listens on signal 9).