[output] Add support for click-events in i3

The i3 output now has a separate thread that continuously monitors stdin
for incoming click events. The generic output class also has methods for
registering callbacks (as commands). For now, by default, scroll events
will be used to emulate the next/previous workspace.
This commit is contained in:
Tobias Witek 2016-11-01 07:46:26 +01:00
parent 36ff727165
commit 579381978e
4 changed files with 66 additions and 2 deletions

View file

@ -25,6 +25,9 @@ class Module(bumblebee.module.Module):
return "{} {}/{} ({:05.02f}%)".format(self._path, bumblebee.util.bytefmt(self._free), bumblebee.util.bytefmt(self._size), self._perc)
def instance(self):
return self._path
def warning(self):
return self._perc < 20