streetturtle / awesome-wm-widgets

Widgets for Awesome Window Manager
http://pavelmakhov.com/awesome-wm-widgets/
MIT License
2.16k stars 279 forks source link

pactl: Older versions of pactl do not have get-sink-* commands #390

Open shuber2 opened 1 year ago

shuber2 commented 1 year ago

The pactl-widget uses pactl commands get-sink-{volume,mute}, which are not provided by older pactl version, like the one in current Debian bullseye.

pactl list or pactl list sinks could be alternatives.

shuber2 commented 1 year ago

I have implemented a first proof-of-concept that would avoid calling the corresponding commands above. Comments are welcome.

shuber2 commented 1 year ago

I have pushed another approach through a wrapper script. The advantage of this approach is that it only fixes the issue for those with an old pactl. Newer versions of pactl will be shipped moderately soon, so this wrapper script as a temporary measure seems to be reasonable.

Comments are welcome.