I have a logitech mouse with some extra buttons on it. Previously I installed xbindkeys and set it up so that b:8 and b:9 (the shoulder buttons) on the mouse changed workspaces (well, emulated some keypresses).
Code:
"xdotool key --clearmodifiers ctrl+alt+Down"
b:8
"xdotool key --clearmodifiers ctrl+alt+Up"
b:9
But now I want to get even more jazzier with it.
I want to have it set up so that b:8 acts as a modifer to my scrollwheel. So that if I scroll while holding down one of the shoulder buttons, it will change my workspace in the direction that I scroll. And I want to set it up so that when I hold the other shoulder button and use the scrollwheel it will activate the flip switcher.
Now here's the clincher. xbindkeys doesnt appear to support multiple mouse keys to perform a single action. I tried to make my .xbindkeysrc contain the following:
Code:
"xdotool key --clearmodifiers ctrl+alt+Down"
b:9 + b:4
"xdotool key --clearmodifiers ctrl+alt+Up"
b:9 + b:5
However this causes all kind of weird effects like causing the ctrl or alt modifiers to turn 'on' and not turn off. And meanwhile the command wont execute.
Does anyone know how to do what i'm trying to do?