aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-28 07:30:10 +0100
committerMattias Andrée <maandree@operamail.com>2015-03-28 07:30:10 +0100
commit7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834 (patch)
treec86e2abc21b04254acea296deef7fc6190939838
parenttypo (diff)
downloadxpybar-7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834.tar.gz
xpybar-7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834.tar.bz2
xpybar-7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834.tar.xz
some mixers do not have mute switch1.8
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/plugins/alsa.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/alsa.py b/src/plugins/alsa.py
index f8cd942..b955130 100644
--- a/src/plugins/alsa.py
+++ b/src/plugins/alsa.py
@@ -76,7 +76,10 @@ class ALSA:
self.mixer.setmute(1, channel)
else:
self.mixer.setvolume(volume, channel)
- self.mixer.setmute(0, channel)
+ try:
+ self.mixer.setmute(0, channel)
+ except:
+ pass # some mixers do not have mute switch
@staticmethod