You are not logged in.
I'm trying to map the keys to my new mouse, and I got all of them working except that I want double click on a thumb button.
Xorg is set up and recognizes all buttons, I can get them all to react and print in xev, as well as when running xbinkeys -n -v.
However, I seem to have poor luck in getting the double click to actually work properly.
I tried using xvkbd with no luck, and xte, no response at all, so I ended up with xdotool and the below configuration:
# Mouse Buttons
"xdotool key alt+F4"
b:6
"xdotool key ctrl+s"
b:7
"xdotool click --repeat 2 1"
b:8
"xdotool key alt+Left"
b:9The above does actually do something, but the click repeat doesn't work as a normal double click, like if I double click on a word in a web browser, I expect it to get selected, the xdotool click bind above doesn't work like that.
I can spam the thumb button and get click events from it, but it's like it acts very erratically and is inconsistent.
I also tried these variants to get the double click to work:
"xdotool click 1 && xdotool click 1""/usr/bin/xte 'mouseclick 1' 'mouseclick 1' &"Is there a trick to getting the double click to work? I have a delay in XFCE of 400ms for double clicking, and also tried settings --delay 200 explicitly for xdotool, but still doesn't work.
Last edited by 7thSon (2018-06-05 21:30:59)
Offline
I guess the problem is that xbindkeys will react to the mouse press, so you've button 7 down while performing the double click, spoiling the effect in the client.
Try to sleep some ms before preforming the doubleclick, so you can release the physical button before xdotool runs.
Offline
I guess the problem is that xbindkeys will react to the mouse press, so you've button 7 down while performing the double click, spoiling the effect in the client.
Try to sleep some ms before preforming the doubleclick, so you can release the physical button before xdotool runs.
Seems you're right, I changed the button signature to "b:8 + Release" and it works fine now.
I also tried putting values between 5 to 100 as sleep before the xdotool command, but that didn't work the same as setting the trigger on Release.
Thanks for the insight!
Offline