Merge pull request #133 from fredj/battery_click
[module/battery] Open gnome-power-statistics on left click
This commit is contained in:
commit
8941f60572
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,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 = []
|
||||
|
|
Loading…
Reference in a new issue