diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-03-28 07:30:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-03-28 07:30:10 +0100 |
commit | 7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834 (patch) | |
tree | c86e2abc21b04254acea296deef7fc6190939838 /src/plugins/alsa.py | |
parent | typo (diff) | |
download | xpybar-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>
Diffstat (limited to '')
-rw-r--r-- | src/plugins/alsa.py | 5 |
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 |