diff --git a/py3status/modules/volume_status.py b/py3status/modules/volume_status.py index 124f9ed1d7..8e18d5b52e 100644 --- a/py3status/modules/volume_status.py +++ b/py3status/modules/volume_status.py @@ -171,10 +171,13 @@ 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 is not None else [] - ) + if self.device is not None: + dev_target = ["--source" if self.is_input else "--sink", self.device] + elif self.is_input: + dev_target = ["--default-source"] + else: + dev_target = [] + self.cmd = ["pamixer", "--allow-boost"] + dev_target def get_volume(self): try: