Skip to content

wpctl: add option to limit set-volume final value

Jason Nader requested to merge ammgws/wireplumber:volumelimit into master

When using certain desktop environments such as i3 or sway, users will often set XF86AudioRaiseVolume to run a command such as wpctl set-volume @DEFAULT_SINK@ +5%. However, this can easily lead to the volume increasing beyond 100% which at the very least is an unpleasant experience.

This PR adds an option --limit to the set-volume command so that the volume can be capped to a reasonable value by the user.

Merge request reports