Skip to content

Commit

Permalink
Fix: pipewire.py module
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sazk07 authored Jul 19, 2023
1 parent 868fdbe commit 04a222f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumblebee_status/modules/contrib/pipewire.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def toggle(self, event):

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):
Expand Down

0 comments on commit 04a222f

Please sign in to comment.