For health reasons I use an Evoluent Mouse type 3 on my machine. For years I've not been able to use it fully as I have lacked the skills necessary to remap the buttons.
But bouyed up by the success of making the latest install work, I thought I'd give it another go. I found this site - http://quandtum.weebly.com/2/post/2012/03/how-to-change-mouse-button-functio... and this one - http://denishaine.wordpress.com/2011/12/01/evoluent-mouse-with-ubuntu-11-04-... but neither tell me how to configure a double-click. I've looked how I map the buttons in Windows but that uses an XML file which seems to bear little resemblance to the mapping used in linux.
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.
This page refers to some software - btnx - that isn't available on this distro - http://www.ghacks.net/2011/06/28/how-to-customize-extra-mouse-buttons-in-lin... so I'm a bit stuck. Does anyone here know of a way to simulate a double click using the inbuilt software of the system?
If it helps, I already have a file 90-evoluent.conf in /usr/share/X11/xorg.conf.d/ and the contents of that look like this
Section "InputClass" Identifier "Evoluent" MatchUSBID "1a7c:0068" Option "ButtonMapping" "1 2 3 2 5 6 7 2 9 10 11 12 13" EndSection
But as I said, even that doesn't work. I'm not getting a right click for button 8.
Any help appreciated as always.
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:-
! pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 ! ! ! Set Right 'Windows' key to be the multi key for accented characters etc. ! keycode 134 = Multi_key ! ! ! Set Alt Gr key to be Mode_Switch which is an extra shift key ! ! keycode 108 = Mode_switch Mode_switch ! ! ! Set so that Mode_Switch plus > give a ▶ key ! ! keysym period = period rightcaret U25B6 NoSymbol ! ! ! Prevent shifted space giving nobreakspace, but leave with CTRL/SHIFT/Space ! keycode 65 = space space space nobreakspace ! ! ! Switch off CapsLock ! keycode 66 =
As you can see the mouse button mapping is commented out as I don't need it with my current mouse (as shown it does nothing anyway).
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?
On Tue, Jul 23, 2013 at 03:29:59PM +0100, Chris Walker wrote:
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 don't think so.
I also created a .Xmodmap file using the command 'xmodmap -pke > ~/.Xmodmap' and haven't changed that.
Should be OK.
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).
Yes, I avoid the Xorg configuration stuff as far as possible now as it gets overwritten every time you update and isn't supposed to be necessary at all.
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?
Your .xbindkeysrc and .Xmodmap should get run at login so should affect everything in the X GUI, mine certainly seem to.
If you've copied my .xbindkeysrc your mouse will have to have buttons 8 and 9, these are the double and triple click ones. (It's a 5 button trackball, conventional buttons 1, 2 and 3 plus two extra buttons which are buttons 8 and 9)
Use xev to find what events your button clicks are generating, that should help you progress.
[See comment at *** below] On 23-Jul-2013 14:42:07 Chris Green wrote:
On Tue, Jul 23, 2013 at 03:29:59PM +0100, Chris Walker wrote:
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 don't think so.
I also created a .Xmodmap file using the command 'xmodmap -pke > ~/.Xmodmap' and haven't changed that.
Should be OK.
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).
Yes, I avoid the Xorg configuration stuff as far as possible now as it gets overwritten every time you update and isn't supposed to be necessary at all.
[***] My fallback for config files which might get over-written is (after modifying the file) to make a copy in the same directory called something like "xxxx.cfg.bak"; then when I want to put it back simply do
cp xxxx.cfg.bak xxxx.cfg
And, in case it might be needed, I save the original (prior to modification) as
cp xxxx.cfg xxxx.cfg.orig
Best wishes to all, Ted.
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?
Your .xbindkeysrc and .Xmodmap should get run at login so should affect everything in the X GUI, mine certainly seem to.
If you've copied my .xbindkeysrc your mouse will have to have buttons 8 and 9, these are the double and triple click ones. (It's a 5 button trackball, conventional buttons 1, 2 and 3 plus two extra buttons which are buttons 8 and 9)
Use xev to find what events your button clicks are generating, that should help you progress.
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@wlandres.net Date: 23-Jul-2013 Time: 16:05:43 This message was sent by XFMail -------------------------------------------------
On Tue, 23 Jul 2013 16:05:47 +0100 (BST) (Ted Harding) Ted.Harding@wlandres.net wrote:
[***] My fallback for config files which might get over-written is (after modifying the file) to make a copy in the same directory called something like "xxxx.cfg.bak"; then when I want to put it back simply do
cp xxxx.cfg.bak xxxx.cfg
And, in case it might be needed, I save the original (prior to modification) as
cp xxxx.cfg xxxx.cfg.orig
Best wishes to all, Ted.
Thanks for the idea Ted.
I always wonder when I do an upgrade how many of the files I've hacked around will be deleted as part of the upgrade. Now, following your suggestion I can search for filenames like the above and check for changes.
On Tue, 23 Jul 2013 15:42:07 +0100 Chris Green cl@isbd.net wrote:
On Tue, Jul 23, 2013 at 03:29:59PM +0100, Chris Walker wrote:
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 don't think so.
I also created a .Xmodmap file using the command 'xmodmap -pke > ~/.Xmodmap' and haven't changed that.
Should be OK.
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).
Yes, I avoid the Xorg configuration stuff as far as possible now as it gets overwritten every time you update and isn't supposed to be necessary at all.
I've just modified the 90-evoluent.conf file to map button 8 to be right click, button 3 on my mouse, and button 3 to be button 13. I then modified the .xbindkeysrc file to modify button 13. I still don't get any action from the middle button (the one I desire to be a double click) but I do at least now get a right click on the 'correct' mouse button. So I'm making progress even if I haven't *yet* fixed the double click problem.
Your .xbindkeysrc and .Xmodmap should get run at login so should affect everything in the X GUI, mine certainly seem to.
OK.
If you've copied my .xbindkeysrc your mouse will have to have buttons 8 and 9, these are the double and triple click ones. (It's a 5 button trackball, conventional buttons 1, 2 and 3 plus two extra buttons which are buttons 8 and 9)
You can see what my mouse looks like here - http://denishaine.wordpress.com/2011/12/01/evoluent-mouse-with-ubuntu-11-04-...
Use xev to find what events your button clicks are generating, that should help you progress.
Done that. That confirms that buttons 8 and 9 (prior to my mods described above) are being pressed.
Thanks for your help. I feel I am making progress and will continue to hack stuff around until it works ;-)