dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Suggested manual intervention to enable volume reporting with pipewire in evil.

Open ArvinZaker opened this issue 3 years ago • 0 comments

Hi,

The evil/volume.lua script is made with only PulseAudio in mind. To allow it to work with pipe wire, I have found that this manual intervention of the code brings back the volume reporting function. It works even when multiple PipeWire sinks exist (unlike the manual intervention recommended by #149:

In evil/volume.lua remove:

    awful.spawn.easy_async_with_shell("pacmd list-sinks | awk '/\\* index: /{nr[NR+7];nr[NR+11]}; NR in nr'", function(stdout)

And replace it with:

    awful.spawn.easy_async_with_shell("pactl list sinks | tail -n $(pactl list sinks | awk '/RUNNING/{print NR+1}')", function(stdout)

I suggest that this manual intervention be added to the wiki or that the code is changed to accommodate PipeWire systems.

ArvinZaker avatar Nov 15 '22 05:11 ArvinZaker