From bf5e814e45b8e075dc611d02b8c19f9543e9740a Mon Sep 17 00:00:00 2001 From: Jeff Eberl Date: Thu, 8 Nov 2018 20:15:45 -0700 Subject: [PATCH] Use the parameter format to determine the minwidth, instead of the default format. --- bumblebee/modules/cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/cpu.py b/bumblebee/modules/cpu.py index ed5b856..3e4bf72 100644 --- a/bumblebee/modules/cpu.py +++ b/bumblebee/modules/cpu.py @@ -20,8 +20,8 @@ import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): widget = bumblebee.output.Widget(full_text=self.utilization) - widget.set("theme.minwidth", "99.9%") super(Module, self).__init__(engine, config, widget) + widget.set("theme.minwidth", self._format.format(10.0-10e-20)) self._utilization = psutil.cpu_percent(percpu=False) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="gnome-system-monitor")