[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:
parent
36ff727165
commit
579381978e
4 changed files with 66 additions and 2 deletions
|
@ -64,6 +64,9 @@ class Module(bumblebee.module.Module):
|
|||
def _istunnel(self, intf):
|
||||
return intf.startswith("tun")
|
||||
|
||||
def instance(self):
|
||||
return self._intf
|
||||
|
||||
def state(self):
|
||||
t = "wireless" if self._iswlan(self._intf) else "wired"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue