Skip to content

Commit

Permalink
volume_status module: pamixer fix command if device is 0 (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr authored Jan 18, 2024
1 parent 127c5e8 commit 4e457b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py3status/modules/volume_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4e457b9

Please sign in to comment.