Merge pull request #124 from fredj/github_module_left_click

[module/github] Open GitHub notifications on left click
This commit is contained in:
tobi-wan-kenobi 2017-07-07 16:21:21 +02:00 committed by GitHub
commit a7448c78e3

View file

@ -29,6 +29,8 @@ class Module(bumblebee.engine.Module):
self._count = 0
self._interval = int(self.parameter("interval", "5"))
self._nextcheck = 0
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
cmd="x-www-browser https://github.com/notifications")
def github(self, _):
return str(self._count)