aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-03-25 13:14:23 +0100
committerMattias Andrée <maandree@kth.se>2017-03-25 13:14:23 +0100
commitb27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2 (patch)
tree9d3a5dc197e8d15d0ffbcd42e2959d23e7c92199
parentFix wind gusts (diff)
downloadxpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.gz
xpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.bz2
xpybar-b27dfdfe870e90543d7f7dfd8bd69dcd3b71a6d2.tar.xz
Fix alsa
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/plugins/alsa.py6
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):