Scroll-Bindings: Add default config

By default we switch workspaces when scrolling
on the desktop to match the Openbox behavior.
This commit is contained in:
Arnaud Vallette d'Osia 2022-11-06 21:13:57 +01:00 committed by Consolatis
parent 063a26ae9d
commit 209e09a1f6
2 changed files with 8 additions and 0 deletions

View file

@ -301,6 +301,12 @@
<mousebind button="Middle" action="Press">
<action name="ShowMenu"><menu>root-menu</menu></action>
</mousebind>
<mousebind button="Up" action="Scroll">
<action name="GoToDesktop" to="left"/>
</mousebind>
<mousebind button="Down" action="Scroll">
<action name="GoToDesktop" to="right"/>
</mousebind>
</context>
</mouse>

View file

@ -591,6 +591,8 @@ static struct mouse_combos {
{ "Root", "Left", "Press", "ShowMenu", "root-menu"},
{ "Root", "Right", "Press", "ShowMenu", "root-menu"},
{ "Root", "Middle", "Press", "ShowMenu", "root-menu"},
{ "Root", "Up", "Scroll", "GoToDesktop", "left"},
{ "Root", "Down", "Scroll", "GoToDesktop", "right"},
{ "Client", "Left", "Press", "Focus", NULL},
{ "Client", "Left", "Press", "Raise", NULL},
{ "Client", "Right", "Press", "Focus", NULL},