From e8970f1bd4f19eb74043cd543a08cb7b155e4321 Mon Sep 17 00:00:00 2001 From: susmus Date: Sat, 9 Jun 2018 22:22:16 +0200 Subject: [PATCH] [module/amixer] Add on/off mute check --- bumblebee/modules/amixer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/amixer.py b/bumblebee/modules/amixer.py index 55d6878..3a4ead6 100644 --- a/bumblebee/modules/amixer.py +++ b/bumblebee/modules/amixer.py @@ -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: