[module/battery] Open gnome-power-statistics on left click
This commit is contained in:
parent
cc6da2b70e
commit
d8018db2c2
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ class Module(bumblebee.engine.Module):
|
||||||
if len(self._batteries) == 0:
|
if len(self._batteries) == 0:
|
||||||
self._batteries = [ "/sys/class/power_supply/BAT0" ]
|
self._batteries = [ "/sys/class/power_supply/BAT0" ]
|
||||||
self.update(widgets)
|
self.update(widgets)
|
||||||
|
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
||||||
|
cmd="gnome-power-statistics")
|
||||||
|
|
||||||
def update(self, widgets):
|
def update(self, widgets):
|
||||||
new_widgets = []
|
new_widgets = []
|
||||||
|
|
Loading…
Reference in a new issue