LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Double-clicking via thum-button solved! (https://www.linuxquestions.org/questions/linux-hardware-18/double-clicking-via-thum-button-solved-337701/)

lagu2653 06-27-2005 01:03 PM

Double-clicking via thum-button solved!
 
I made my Logitech MX510 optical mouse double-click via the thum-button. If anybody is interested I can post the solution.

/Lars

itsjustme 06-27-2005 01:31 PM

:scratch:

No, nobody is interested in technical stuff here. :D

Shade 06-27-2005 01:45 PM

lagu, please do post the solution.

--Shade

lagu2653 06-28-2005 09:11 AM

Solution
 
First you follow this guide www.linux-gamers.net. Then you install xkindkeys. Then you install mvmouse. Then you put a file called .xbindkeysrc containing the code-snippet below in your home-directory.
Code:

"xvkbd -xsendevent -text "\[Alt_L]\[Left]""
  b:2
"~/./my_double_click.sh && ~/./my_double_click.sh &"
  b:6

You have to check which button is the thum- and wheelbutton. On my mouse it's button No. 2 and 6. Then you create a file called my_double_click.sh and put the following line in it:
Code:

mvmouse +0 +0 1 && mvmouse +0 +0 1 &
It looks as if it will produce 4 clicks but it doesn't. You have to chmod the shell-script to give it execution-rights. my_double_click.sh should also be placed in your home-directory. Then you restart your X server using the ctrl-alt-backspace keys. And that's it!

/Lars


All times are GMT -5. The time now is 04:38 AM.