edit : I made it so horizontal scroll switch between Desktop 1 and 2 only, that's what I needed, here is what I did if anyone wants to the same.
in the Desktop context section of mousebid :
<mousebind button="Button6" action="Click">
<action name="GoToDesktop">
<to>1</to>
</action>
</mousebind>
<mousebind button="Button7" action="Click">
<action name="GoToDesktop">
<to>2</to>
</action>
</mousebind>
<mousebind button="Left" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
in the Desktop context and it doesn't work. If i change it to 'Up' and 'Down' it works though but I would like to use horizontal, any other suggestions?
]]><mousebind button="Left" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
this is the xev output :
ButtonPress event, serial 46, synthetic NO, window 0x1a00001,
root 0x83, subw 0x0, time 351370, (61,90), root:(167,345),
state 0x0, button 7, same_screen YES
ButtonRelease event, serial 46, synthetic NO, window 0x1a00001,
root 0x83, subw 0x0, time 351370, (61,90), root:(167,345),
state 0x0, button 7, same_screen YES
ButtonPress event, serial 46, synthetic NO, window 0x1a00001,
root 0x83, subw 0x0, time 353702, (61,90), root:(167,345),
state 0x0, button 6, same_screen YES
ButtonRelease event, serial 46, synthetic NO, window 0x1a00001,
root 0x83, subw 0x0, time 353702, (61,90), root:(167,345),
state 0x0, button 6, same_screen YES
Also before I changed it to Left and Right, I couldn't scroll up/down to change desktop, I don't remember if I changed it one day because it was very annoying but it wasn't doing it anymore. I would like this mousebind to be global too if it's possible.
]]>But of course these would be mouse bindings, not key bindings.
]]>http://openbox.org/wiki/Help:Bindings#Mouse_bindings
What do you get if you run "xev" and scroll horizontally?
And I think you mean "rc.xml" unless we're talking about something completely different.
This code causes my scrollwheel to switch desktops -- could it be as simple as "left" and "right" instead of "up" and "down"?
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<keybind key="C-A-Left"> <--- what to type for horizontal scroll?
<action name="GoToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
I've looked in the rc.conf wiki and couldn't find anything...anyone knows?
thank you