Fedora Linux Support Community & Resources Center
  #1  
Old 21st February 2012, 04:15 AM
vhradice Offline
Registered User
 
Join Date: Oct 2007
Posts: 117
linuxfirefox
How do I assign the functions to the extra buttons on my mouse?

I have a 5-button mouse. Actually there are 4 buttons and the wheel. From what I have read, the wheel has several different functions that it can do. Scroll up/down, scroll left/right ,and be pressed. I have not found a place where I assign the function to the button. I have used xev to identify which button is which button code. The buttons I want to assign functions to are 8 and 9. I want to assign "Enter" to 8 and "Esc" to 9.
I am running FC16 with KDE4. Where do I make this change?

Thanks in advance.
Reply With Quote
  #2  
Old 21st February 2012, 08:15 AM
Salamandra's Avatar
Salamandra Offline
Registered User
 
Join Date: Sep 2004
Location: Spain
Posts: 317
windows_xp_2003firefox
Re: How do I assign the functions to the extra buttons on my mouse?

Quote:
Originally Posted by vhradice View Post
I have a 5-button mouse. Actually there are 4 buttons and the wheel. From what I have read, the wheel has several different functions that it can do. Scroll up/down, scroll left/right ,and be pressed. I have not found a place where I assign the function to the button. I have used xev to identify which button is which button code. The buttons I want to assign functions to are 8 and 9. I want to assign "Enter" to 8 and "Esc" to 9.
I am running FC16 with KDE4. Where do I make this change?

Thanks in advance.
I had that problem with a logitech marble mouse and solved it using xinput.

This guide is for a trackball, but probably you can tweak it to achieve what you want.

http://www.robmeerman.co.uk/unix/xinput

In order to get it working i added the commands to be run when the session starts.
__________________
Linux User #365705

Last edited by Salamandra; 21st February 2012 at 10:52 AM.
Reply With Quote
  #3  
Old 21st February 2012, 02:11 PM
vhradice Offline
Registered User
 
Join Date: Oct 2007
Posts: 117
linuxchrome
Re: How do I assign the functions to the extra buttons on my mouse?

I have seen references to setting the pointer mapping numbers - pointer = numbers. Where do I say button 8 is "Enter"? I have seen references to xmodmap but no where can I find out how to say "Mouse button 8 is the Enter key". Somewhere there is a file that has the mapping between each mouse button and the command associated with it. What is that file?

Thanks.
Reply With Quote
  #4  
Old 22nd February 2012, 05:23 PM
Salamandra's Avatar
Salamandra Offline
Registered User
 
Join Date: Sep 2004
Location: Spain
Posts: 317
linuxfirefox
Re: How do I assign the functions to the extra buttons on my mouse?

Sorry for late answer, i have been googling and it seems that you can achieve what you want using xbinkeys. It is in the repos, i have no experience in it so i can't help you with it.
__________________
Linux User #365705
Reply With Quote
  #5  
Old 23rd February 2012, 09:14 PM
vhradice Offline
Registered User
 
Join Date: Oct 2007
Posts: 117
linuxchrome
Re: How do I assign the functions to the extra buttons on my mouse?

I have tried xbindkeys without success. Somewhere there is a file which maps the mouse keys and wheel movement to functions. I can alter what does what by changing the pointer values. My question is What is that file?
Reply With Quote
  #6  
Old 12th April 2012, 03:03 PM
vhradice Offline
Registered User
 
Join Date: Oct 2007
Posts: 117
linuxfirefox
Re: How do I assign the functions to the extra buttons on my mouse?

Further searching has come up with what I think is happening. I was looking on the X11 site and I cam across the statement that X passes the button code to the application and the application then determines the action to be performed. I am presuming from this that the mapping is done by the application. If I want a special function for a specific key, I need to map that in the application. I have also figured out that not all applications map the buttons and will accept a function passed into it. I found this out by using xbindkeys.
I consider this solved.
Reply With Quote
Reply

Tags
assign, buttons, extra, functions, mouse

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
map extra mouse buttons? geoffmen Using Fedora 3 26th September 2011 12:20 AM
Mouse extra buttons inp3dance Hardware & Laptops 0 1st June 2010 12:10 AM
Enabling extra mouse buttons Mystinar Hardware & Laptops 1 24th December 2005 01:51 PM
5 button mouse - extra buttons not working? tollyboi Hardware & Laptops 12 8th August 2005 04:26 AM


Current GMT-time: 00:56 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat