Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] A command to decrease volume only if it is currently above threshold #57

Open
omnster opened this issue Jan 26, 2024 · 0 comments

Comments

@omnster
Copy link

omnster commented Jan 26, 2024

I would like to have a command that given one input parameter ($THRESHOLD) would compare it with the current volume ($CURRENT_VOLUME), and then set the volume to the smallest value of the two ($THRESHOLD or $CURRENT_VOLUME).

Currently, I use a shell script that does this:

if [[ $CURRENT_VOLUME -gt $THRESHOLD  ]]; then
    pamixer --set-volume $THRESHOLD
fi

I'm coming from pulseaudio-ctl which had it implemented as

pulseaudio-ctl almost $THRESHOLD

I believe it could be a nice convenient addition to what pamixer can do.

Thank you very much for pamixer, it helped a lot to transition from pulseaudio to pipewire!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant