So far, xbindkeys has always met all my needs. However, I believe that the mouseclick modifiers may not be documented, and more importantly, that they are not recognized when used in the xbindkeysrc file.
My use case is simple: I am binding the forward button of my Logitech G400s mouse to a new action. All that you would expect would be required is right here:
It works as expected in most conditions. However, if the left click button is also pressed down, and is still held down when I press the forward button, the script does not fire.
"xbindkeys -k" does not recognize forward mouse buttons, though I did notice that when I have the left click button pressed, and then press a normal key (like 'r'), this output is generated:
$ xbindkeys -k
m:0x100 + c:27
Whereas for a normal 'r' press, it is simply "m:0x0".
When the same thing, but with right click pressed down, I get "m:0x400". Left and right both pressed down, predictably, makes "m:0x500".
However, I was not able to get any of these modifiers to be respected. First, I tried changing the associated key to "b:9 + b:1", but that would only fire immediately upon b:1 being pressed down; b:9 didnt work at all here.
Then, I tried to use "m:0x100 + b:9", however, that did not work either.
Which seems to imply that it is the same thing as "b:1". But I would imagine that "b:1" is the button itself, whereas "m:0x100" is the state of the mouse at the time some other button is pressed down.
Any suggestions? My ultimate goal is for this forward mouse button to trigger my script regardless of whether or not the left or right click buttons are pressed down at the time I hit the forward button.
Thanks for reading!