awesome-wm-widgets icon indicating copy to clipboard operation
awesome-wm-widgets copied to clipboard

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

Open shuber2 opened this issue 2 years ago • 2 comments

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 avatar Jan 24 '23 18:01 shuber2

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

shuber2 avatar Jan 25 '23 19:01 shuber2

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.

shuber2 avatar Jan 25 '23 20:01 shuber2