Merge pull request #325 from dustypaws/patch-1
Set state to critical if volume is set over 100%
This commit is contained in:
commit
fd7e709b5a
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ class Module(bumblebee.engine.Module):
|
||||||
def state(self, widget):
|
def state(self, widget):
|
||||||
if self._mute:
|
if self._mute:
|
||||||
return ["warning", "muted"]
|
return ["warning", "muted"]
|
||||||
|
if int(self._left) > int(100):
|
||||||
|
return ["critical", "unmuted"]
|
||||||
return ["unmuted"]
|
return ["unmuted"]
|
||||||
|
|
||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue