diff options
author | Mattias Andrée <maandree@kth.se> | 2017-03-25 13:14:23 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-03-25 13:14:23 +0100 |
commit | b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2 (patch) | |
tree | 9d3a5dc197e8d15d0ffbcd42e2959d23e7c92199 | |
parent | Fix wind gusts (diff) | |
download | xpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.gz xpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.bz2 xpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.xz |
Fix alsa
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/plugins/alsa.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/alsa.py b/src/plugins/alsa.py index f624672..b5365c7 100644 --- a/src/plugins/alsa.py +++ b/src/plugins/alsa.py @@ -59,10 +59,10 @@ class ALSA: card = -1 else: card = alsaaudio.cards().index(card) - self.card = card + self.cardindex = card self.mixername = mixername - self.mixer = alsaaudio.Mixer(self.mixername, 0, self.card) - self.cardname = mixer.cardname + self.mixer = alsaaudio.Mixer(self.mixername, 0, self.cardindex) + self.cardname = self.mixer.cardname def get_volume(self): |