From 04a222f3c8bc7eaa41bdcd2f1ea1c0cfe28a8964 Mon Sep 17 00:00:00 2001 From: Shahan Arshad Date: Thu, 20 Jul 2023 02:16:24 +0500 Subject: [PATCH] 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 --- bumblebee_status/modules/contrib/pipewire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/modules/contrib/pipewire.py b/bumblebee_status/modules/contrib/pipewire.py index f07cd55..86c9b9d 100644 --- a/bumblebee_status/modules/contrib/pipewire.py +++ b/bumblebee_status/modules/contrib/pipewire.py @@ -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):