diff --git a/bumblebee/modules/battery.py b/bumblebee/modules/battery.py index 535d38b..66485a5 100644 --- a/bumblebee/modules/battery.py +++ b/bumblebee/modules/battery.py @@ -96,7 +96,7 @@ class Module(bumblebee.engine.Module): output = "{} {}".format(output, self.remaining()) if bumblebee.util.asbool(self.parameter("showdevice", False)): - output = "{} ({})".format(output, r.read()) + output = "{} ({})".format(output, os.path.basename(widget.name)) return output