Fix: pipewire.py module

mousewheel up and down events were initially not working on my bumblebee status bar. After verifying on the command line, it seems that wpctl set-volume command requires sink ID first and percentage change as the second arg.

steps to verify, assuming wireplumber is installed and sink ID is 32

```sh
wpctl set-volume 32 50%
```
will set the volume to 50%

```sh
wpctl set-volume 50% 32
```
will result in `Object '52' not found
This commit is contained in:
Shahan Arshad 2023-07-20 02:16:24 +05:00 committed by GitHub
parent 868fdbedd3
commit 04a222f3c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,12 +57,12 @@ class Module(core.module.Module):
def increase_volume(self, event):
util.cli.execute(
"wpctl set-volume --limit 1.0 {} {}+".format(self.__change, self.__id)
"wpctl set-volume --limit 1.0 {} {}+".format(self.__id, self.__change)
)
def decrease_volume(self, event):
util.cli.execute(
"wpctl set-volume --limit 1.0 {} {}-".format(self.__change, self.__id)
"wpctl set-volume --limit 1.0 {} {}-".format(self.__id, self.__change)
)
def volume(self, widget):