[modules/pamixer] use -t flag to toggle mute instead of setting volume level to 0

Signed-off-by: FraSharp <s23265@iisve.it>
This commit is contained in:
FraSharp 2022-09-08 12:11:27 +02:00
parent 1983408e58
commit 8d0f8a4177

View file

@ -49,7 +49,7 @@ class Module(core.module.Module):
core.input.register(self, button=event["button"], cmd=event["action"])
def toggle(self, event):
self.set_parameter("--set-level 0")
self.set_parameter("--toggle-mute")
def increase_volume(self, event):
self.set_parameter("--increase {}".format(self.__change))