Merge pull request #124 from fredj/github_module_left_click
[module/github] Open GitHub notifications on left click
This commit is contained in:
commit
a7448c78e3
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ class Module(bumblebee.engine.Module):
|
||||||
self._count = 0
|
self._count = 0
|
||||||
self._interval = int(self.parameter("interval", "5"))
|
self._interval = int(self.parameter("interval", "5"))
|
||||||
self._nextcheck = 0
|
self._nextcheck = 0
|
||||||
|
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
||||||
|
cmd="x-www-browser https://github.com/notifications")
|
||||||
|
|
||||||
def github(self, _):
|
def github(self, _):
|
||||||
return str(self._count)
|
return str(self._count)
|
||||||
|
|
Loading…
Reference in a new issue