Merge pull request #270 from susmus/master
[module/amixer] Add on/off mute check
This commit is contained in:
commit
01f248cdcd
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Module(bumblebee.engine.Module):
|
|||
m = re.search(r'([\d]+)\%', self._level)
|
||||
self._muted = True
|
||||
if m:
|
||||
if m.group(1) != "0":
|
||||
if m.group(1) != "0" and "[on]" in self._level:
|
||||
self._muted = False
|
||||
return "{}%".format(m.group(1))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue