Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ArvinZaker opened this issue Nov 15, 2022 · 0 comments

Comments

@ArvinZaker
Copy link

ArvinZaker commented Nov 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant