Skip to content

Commit

Permalink
volume_status module: pamixer: Use default device if none specified (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr authored Jan 17, 2024
1 parent 89b5e8e commit 127c5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3status/modules/volume_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ 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 or "0"]
self.cmd = ["pamixer", "--allow-boost"] + ([is_input, self.device] if self.device else [])

def get_volume(self):
try:
Expand Down

0 comments on commit 127c5e8

Please sign in to comment.