Skip to content

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

@dyfrgi

Description

@dyfrgi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions