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

pactl-widget: No way to set limit on max volume #398

Open
dyfrgi opened this issue Apr 3, 2023 · 2 comments
Open

pactl-widget: No way to set limit on max volume #398

dyfrgi opened this issue Apr 3, 2023 · 2 comments

Comments

@dyfrgi
Copy link

dyfrgi commented Apr 3, 2023

pactl has no way to set limits on the max volume, and so neither does this widget - calling volume:inc(5) repeatedly will bring the set volume above 100%.

A simple workaround is to use pamixer instead of pactl to set the volume, since it does check the max and avoids going above 100%. Since update_graphic() isn't accessible outside of worker() it's unfortunately not possible to roll your own update without changing the implementation of pactl-widget, though the widget will pick up the update after the refresh period.

@xfzv
Copy link

xfzv commented Apr 18, 2023

Not directly related but with Pipewire, you can limit the volume to 100% with:

wpctl set-volume @DEFAULT_SINK@ 1%+ -l 1.0

@corn-flake
Copy link

Not directly related but with Pipewire, you can limit the volume to 100% with:

wpctl set-volume @DEFAULT_SINK@ 1%+ -l 1.0

This works, but only with wireplumber because it's a wireplumber command. If you don't use wire plumber this won't work.

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

3 participants