On Tue, 23 Jul 2013 12:47:01 +0100 Chris Green cl@isbd.net wrote:
On Tue, Jul 23, 2013 at 11:13:47AM +0100, Chris Walker wrote:
I have already tried to map the buttons to other functions but that hasn't worked so I need to do some more work on that and although I might be able to resolve those issues, there's one I can't. That one thing is a double click. In Windows I have button 2 (3 in linux!) configured to act as a double click but I can't seem to do that here.
To get a double-click from a single click I use xbindkeys and xte which (in Ubuntu) is part of xautomation. In my .xbindkeysrc file I have:-
"/usr/bin/xte 'mouseup 8' 'mouseclick 1' 'mouseclick 1' &" b:8 + Release "/usr/bin/xte 'mouseup 9' 'mouseclick 1' 'mouseclick 1'
'mouseclick 1' &" b:9 + Release
This gives me a double click of button 1 for button 8 and a triple click for button 9. I have a Logitech scrollball with two extra buttons which appear as buttons 8 and 9 for some reason.
For changing key bindings (including mouse buttons) I use xmodmap which uses .Xmodmap at login. My .Xmodmap is:-
I do have xte and I have just created a default .xbindkeysrc file. That has this in it :- # specify a mouse button "xterm" control + b:2
Is that likely to interfere with my requirements?
I also created a .Xmodmap file using the command 'xmodmap -pke > ~/.Xmodmap' and haven't changed that.
To avoid confusion, I reset the 90-evoluent.conf file back to the defaults of 1 2 3 4 etc but nothing seems to change. I still don't get a double click on anything (I rebooted for good measure).
I have just run 'xinput test 8' and confirmed that the bottom button on my mouse is back to being button 8 and with the same .xbindkeysrc setup as yours I don't get a double click. In fact I don't appear to get anything at all on the desktop icons. Is that important too? Will these things only happen when used on a window?