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:
parent
868fdbedd3
commit
04a222f3c8
1 changed files with 2 additions and 2 deletions
|
@ -57,12 +57,12 @@ class Module(core.module.Module):
|
||||||
|
|
||||||
def increase_volume(self, event):
|
def increase_volume(self, event):
|
||||||
util.cli.execute(
|
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):
|
def decrease_volume(self, event):
|
||||||
util.cli.execute(
|
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):
|
def volume(self, widget):
|
||||||
|
|
Loading…
Reference in a new issue