Repository navigation
Add a volume setting for notification sounds (ui.sound.volume)
#6298
minutetominute
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Herdr's agent-state sounds are useful, but there's no way to control how loud they are. The current options are all or nothing:
ui.sound.enabledturns sounds fully on or off.ui.sound.agents.<agent>turns them off for a single agent type.ui.sound.path/done_path/request_pathswap in a custom mp3.The only way to make the default chime quieter is to re-encode it yourself (for example
ffmpeg -i chime.mp3 -filter:a "volume=0.3" quiet.mp3) and pointui.sound.pathat the result. That works, but it's a workaround. You have to make an extra file for each sound (default, done, request), and it's hard to tune.When several agents are running in background workspaces, the sounds go off often. At normal system volume they get distracting, but turning them off loses a signal that's actually useful.
Proposal
Add a volume setting under
[ui.sound], with an optional override for each sound:The players Herdr already uses can all take a volume argument, so this could be passed through without re-encoding:
afplay(macOS)-v <volume>paplay--volume=<0–65536>pw-play--volume=<float>ffplay-volume <0–100>mpg123-f <scale>(soft gain, default 32768)mpv--volume=<0–100>Why a setting instead of a mute toggle
This is different from #5189 (quick runtime mute) and #2895 (per-pane mute). Those are about whether a sound plays at all. This is about how loud it is when it does. A volume setting lets people keep sounds on without them being jarring, and that may also cut down on requests to mute everything.
Related
ui.sound.enabledAll reactions