I have a Logitech M720 Mouse that I'm hoping to bind the side button (usually page forward) to the middle click button - something that I've done on my Windows with Logitech Options.
After researching, I've found that I will need to do it via xbindkeys
and xautomation
.
I tested out the key presses with xev
and found that the side button is button 9
, and middle scrollwheel button is button 2
.
I then made my .xbindkeysrc
file as such:
"xte 'mouseclick 2'"
b:9
However after repolling the rc file on xbindkeys
, the key bind is not recognised anywhere on my system, and doing an xev
test returns a peculiar result:
USUALS RESULT ON DEPRESSING BUTTON 9
ButtonPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x1dd, subw 0x0, time 38400097, (160,106), root:(160,169),
state 0x0, button 9, same_screen YES
ButtonRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x1dd, subw 0x0, time 38400237, (160,106), root:(160,169),
state 0x0, button 9, same_screen YES
RESULTS AFTER XBINDKEYSRC FILE MODIFICATION (BUTTON 9)
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967261 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
even after clearing out my .xbindkeysrc
file, the output is still the same, and will only return to normal after i killall xbindkeys
and restart by typing xbindkeys
in the terminal.
I found this this thread with a potential solution but unfortunately did not work for me.
Binding the button press to anything else for example "xte 'key a'"
works as expected.
Anyone with any pointers what I might be doing wrong?
Cheers.