[core/input] add default workspace wrap bindings (mouse wheel up/down)

This commit is contained in:
tobi-wan-kenobi 2020-05-02 13:54:45 +02:00
parent d0bb0f9b7a
commit ba24ba13db
4 changed files with 15 additions and 5 deletions

View file

@ -83,6 +83,9 @@ def main():
output = core.output.i3(theme, config)
modules = []
core.input.register(None, core.input.WHEEL_UP, 'i3-msg workspace prev_on_output')
core.input.register(None, core.input.WHEEL_DOWN, 'i3-msg workspace next_on_output')
input_thread = threading.Thread(target=handle_input, args=(output,))
input_thread.daemon = True
input_thread.start()