diff --git a/py3status/modules/volume_status.py b/py3status/modules/volume_status.py index bb85040f05..124f9ed1d7 100644 --- a/py3status/modules/volume_status.py +++ b/py3status/modules/volume_status.py @@ -172,7 +172,9 @@ def toggle_mute(self): class Pamixer(Audio): def setup(self, parent): is_input = "--source" if self.is_input else "--sink" - self.cmd = ["pamixer", "--allow-boost"] + ([is_input, self.device] if self.device else []) + self.cmd = ["pamixer", "--allow-boost"] + ( + [is_input, self.device] if self.device is not None else [] + ) def get_volume(self): try: