Merge pull request #38 from jedrz/alsa-fix-muted-formatter

alsa: do not ignore unmuted setting
This commit is contained in:
enkore 2014-03-05 20:01:24 +01:00
commit 07fbfc6640

View File

@ -67,7 +67,7 @@ class ALSA(IntervalModule):
muted = self.alsamixer.getmute()[self.channel] == 1 muted = self.alsamixer.getmute()[self.channel] == 1
self.fdict["volume"] = self.alsamixer.getvolume()[self.channel] self.fdict["volume"] = self.alsamixer.getvolume()[self.channel]
self.fdict["muted"] = self.muted if muted else self.muted self.fdict["muted"] = self.muted if muted else self.unmuted
self.output = { self.output = {
"full_text": self.format.format(**self.fdict), "full_text": self.format.format(**self.fdict),