Merge pull request #325 from dustypaws/patch-1

Set state to critical if volume is set over 100%
This commit is contained in:
tobi-wan-kenobi 2018-11-16 15:18:10 +01:00 committed by GitHub
commit fd7e709b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,8 @@ class Module(bumblebee.engine.Module):
def state(self, widget):
if self._mute:
return ["warning", "muted"]
if int(self._left) > int(100):
return ["critical", "unmuted"]
return ["unmuted"]
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4