[module/battery] Open gnome-power-statistics on left click

This commit is contained in:
Frederic Junod 2017-07-08 07:07:00 +02:00
parent cc6da2b70e
commit d8018db2c2

View file

@ -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 = []