From d8018db2c284e0143b0a2a3fd205e8b21eff0346 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Sat, 8 Jul 2017 07:07:00 +0200 Subject: [PATCH] [module/battery] Open gnome-power-statistics on left click --- bumblebee/modules/battery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/battery.py b/bumblebee/modules/battery.py index a22c8d8..e3a1d10 100644 --- a/bumblebee/modules/battery.py +++ b/bumblebee/modules/battery.py @@ -28,6 +28,8 @@ class Module(bumblebee.engine.Module): if len(self._batteries) == 0: self._batteries = [ "/sys/class/power_supply/BAT0" ] self.update(widgets) + engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, + cmd="gnome-power-statistics") def update(self, widgets): new_widgets = []