LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2006, 02:45 AM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Configure wheel button to do different things


I'm using a USB optical mouse. The scroll function works fine. I was just wondering if there was any way to make the "wheel button" be configured as anything else? (Example: double left click)

Running 10.2, kernel 2.6.15, KDE
Relevent output from cat /proc/bus/input/devices:
Code:
I: Bus=0003 Vendor=04b4 Product=6370 Version=0001
N: Name="Acrox         Acrox RF Ball Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103
Relevent xorg.conf excerpt:
Code:
Section "Input Device"
  Driver          "mouse"
  Identifier      "Mouse1"
  Option          "Device"              "/dev/mouse"
  Option          "Buttons"             "5"
  Option          "ZAxisMapping"        "4 5"
  Option          "Protocol"            "Auto"
EndSection
Basically, I just wish to change the function of the "Scroll Button" to be something other than the standard 3rd button. A program or a change to the xorg.conf maybe?

Any ideas would be appreciated.
 
Old 03-06-2006, 03:27 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You can use xmodmap (man xmodmap) to change the number assigned to each button or use imwheel (http://imwheel.sourceforge.net/) to assign custom functions to mouse buttons.
 
Old 03-06-2006, 04:01 AM   #3
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
not an answer to ur question
but for newbeees in linux

u can use scroll button to copy paste(words, sentences etc.)it will keep the previously selected material to be pasted on the cursor location by a simgle press in the wheel.(it helps me to copy paste outputs, even in the text mode)
select the words-->move ur mouse cursor to the point where u wnat the selected text-->press wheel.
if u know more techniques plz send
 
Old 03-06-2006, 04:03 AM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Not quite what I was looking for.

I want to change the behavior of button 3 (I guess it's button 3...The button on the wheel.)

Changing the button number (xmodmap) doesn't do it.

I want to be able to change the BEHAVIOR of buttons, not the wheel (imwheel is not it either)

I'm looking for a configuration applet like what Windows has to change what the button does, not what the button is.
 
Old 03-06-2006, 06:15 AM   #5
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
imwheel will let you do what you want, I think. Basically with imwheel you can assign stuff to a mouse button ... fishing around the web picked up this little tidbit:

Code:
~/.imwheelrc
Configures a double click for the thumb button.
".*"
None, Thumb1, Button1, 2
Rummaging in the man pages of imwheel shows us that:

Code:
       Example:
              Shift_L|Button4
                  - meaning left shift and wheel up.
              Button5
                  - meaning wheel down.
I don't have the exact syntax available, but the man pages are long and descriptive and the example imwheelrc file is longer!

So, you could indeed do a double click on your middle mouse with imwheel if you're willing to work at it a bit =D

- Piete.
 
Old 03-17-2006, 03:50 PM   #6
Fedorasjm
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
Picking up on "gbonvehi"'s suggestiong, I was able to use the "xmodmap" function to eliminate the annoying paste feature when accicentally clicking the scroll button. These mappings work well for me on my Suse distribution though I can't guarantee how it will work for you. But here goes. I entered the following command:
xmodmap -e "pointer = 1 3 6 4 5"

What this did for me is make my left button do nothing and made the scroll button click act like by left button. Although when scrolling this may make the left button menu pop up when accientally clicke while scrolling, at least no paste operation takes place and the menu will disappear as I continue to scroll.

Some observations on this are:
1) At least with Suse, a "3" (i.e. paste operation) will not take place unless both a "1 AND 2" button are defined (which is not the case in my mapping command)
2) A center click (i.e. "6" operation) causes a "2" (i.e. left click menu operation). This probably takes place because a 6 is an invalid button for a mouse with two buttons and a scroll wheel. Therefore, Suse X11 seems to have determined that the "2" button was the only valid button not defined so therefore when the scoll button wheel was clicked a "2" button operation was invoked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wheel button is not working hiperactive Linux - Newbie 2 09-25-2005 07:15 AM
Mapping the mouse wheel button jfranks214 *BSD 1 12-19-2004 09:50 PM
5 button wheel mouse (tried all forums) Smaks Slackware 46 07-17-2004 04:17 PM
Scroll Wheel [2 button mouse] OldBob Linux - Hardware 1 05-06-2003 08:50 PM
mouse wheel like right button??? Relja Linux - General 0 02-24-2003 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration