Pulseaudio: fix non-working decrease_volume()
Also change switch_mute() and increase_volume() to look similar to decrease_volume()
This commit is contained in:
parent
55b1c1432c
commit
f678565666
@ -191,10 +191,10 @@ class PulseAudio(Module, ColorRangeModule):
|
||||
subprocess.call("pacmd set-default-sink {}".format(sinks[next_sink]).split())
|
||||
|
||||
def switch_mute(self):
|
||||
subprocess.call(['pactl', 'set-sink-mute', self.sink, "toggle"])
|
||||
subprocess.call(['pactl', '--', 'set-sink-mute', self.sink, "toggle"])
|
||||
|
||||
def increase_volume(self):
|
||||
subprocess.call(['pactl', 'set-sink-volume', self.sink, "+%s%%" % self.step])
|
||||
subprocess.call(['pactl', '--', 'set-sink-volume', self.sink, "+%s%%" % self.step])
|
||||
|
||||
def decrease_volume(self):
|
||||
subprocess.call(['pactl', 'set-sink-volume', self.sink, "-%s%%" % self.step])
|
||||
subprocess.call(['pactl', '--', 'set-sink-volume', self.sink, "-%s%%" % self.step])
|
||||
|
Loading…
Reference in New Issue
Block a user