-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Comments
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
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 ofworker()
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.The text was updated successfully, but these errors were encountered: