[core/engine] Add parameter 'engine.workspacewheel'
Add a parameter that allows the user to enable/disable workspace scrolling via the status bar. By default, scrolling is enabled, to disable it, add the following parameter to your bumblebee-status invokation: -p <other parameters> engine.workspacewheel=false see #188
This commit is contained in:
parent
34d9278c6e
commit
abd58d2fba
1 changed files with 5 additions and 4 deletions
|
@ -117,6 +117,7 @@ class Engine(object):
|
||||||
self.load_modules(config.modules())
|
self.load_modules(config.modules())
|
||||||
self._current_module = None
|
self._current_module = None
|
||||||
|
|
||||||
|
if bumblebee.util.asbool(config.get("engine.workspacewheel", "true")):
|
||||||
self.input.register_callback(None, bumblebee.input.WHEEL_UP,
|
self.input.register_callback(None, bumblebee.input.WHEEL_UP,
|
||||||
"i3-msg workspace prev_on_output")
|
"i3-msg workspace prev_on_output")
|
||||||
self.input.register_callback(None, bumblebee.input.WHEEL_DOWN,
|
self.input.register_callback(None, bumblebee.input.WHEEL_DOWN,
|
||||||
|
|
Loading…
Reference in a new issue