Page 1 of 1

[SOLVED] logitech mx revolution middle button

PostPosted: Dec 29th, '14, 23:59
by dave5424
hello,
mageia 4, kde

i have been trying for about a year now to set the middle button on my mouse to act like the ctrl key when i hold it down ie. when i hold it and press a hyperlink, it opens in new tab. i have tried xbindkeys and easystroke. it seems like the problem is the button is handled as a keyboard key and not a mouse key. easystroke wont recognize that button being pushed, when it will recognize all the rest of the buttons being pushed.

i can go into the keyboard short cuts inside of system settings and create a new global shortcut> send keyboard input, and set the trigger for the middle button, which comes up as search in the shortcut box. i just have no idea how to create an action that makes holding search equal holding down ctrl. i have done it in windows using setpoint. i have also tried and failed in lmde cinnamon.

if anyone would have any idea of how to do this i would be very grateful.

thank you

Re: logitech mx revolution middle button

PostPosted: Dec 30th, '14, 01:21
by doktor5000
Have a look at https://wiki.archlinux.org/index.php/Lo ... Revolution and maybe https://wiki.archlinux.org/index.php/Al ... ns_Working
If you need xvkbd binary, you may need to install the package of that name, same for xmodmap.

Re: logitech mx revolution middle button

PostPosted: Dec 30th, '14, 03:06
by dave5424
thank you for the quick response

i installed xbindkeys xvkbd
Code: Select all
touch ~/.xbindkeysrc
nano ~ /.xbindkeysrc

"/usr/bin/xvkbd -text "\[Control_L""
   c:0xE1


set xbindkeys to autostart
because the script in .xbindkeysrc had a typo, when i was in a text editor pressing the button output ol_L alot of the time i pressed it, so c:0xE1 is that button. i fixed the typo to:.
Code: Select all
"/usr/bin/xvkbd -text "\[Control_L]""
   c:0xE1

it no longer outputs text when i press the button, however it still doesn't open new tab when i hold it down and left click.

i added to the following to use the media wheel on the side to change tab.
Code: Select all
"/usr/bin/xvkbd -text "\[Control_L]\[Page_Up]""
     m:0x0 + b:13
"/usr/bin/xvkbd -text "\[Control_L]\[Page_Down]""
     m:0x0 + b:15

and that works just fine, so i'm part of the way there

thank you

Re: logitech mx revolution middle button

PostPosted: Dec 30th, '14, 04:35
by dave5424
ok i tried

Code: Select all
   echo "keycode 225 = Control_L" >> ~/.Xmodmap
  nano ~/.kde4/Autostart/middleclick
  #!/bin/sh
   xmodmap ~/.Xmodmap

   chmod +x ~/.kde4/Autostart/middleclick

no success

i tried
Code: Select all
nano ~/.xbindkeysrc
"/usr/bin/xvkbd -text "\[Control_L]""
     m:0x0 + b:17


no success. b:17 is pushing the media wheel down. i restarted after each change

Re: logitech mx revolution middle button

PostPosted: Jan 23rd, '15, 07:33
by dave5424
found the solution
Code: Select all
touch ~/.Xmodmap
nano ~/.Xmodmap
   clear Control
   add Control = Control_L Control_R XF86Search

touch ~/autostart
nano ~/autostart
   #!/bin/bash
   xmodmap ~/.Xmodmap

set ~/autostart to executable
set it to autostart from the method of your choice


i am now very very happy :D