LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2003, 06:47 PM   #1
Neumonic_Splice
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
Mapping Mouse Buttons ??


I have a Microsoft Trackball Optical USB 7-button mouse. I read in another thread on this site that to use the buttons you have to map the wheel to be buttons 6 and 7. I did that, and the wheel works fine still. However, how to I map the 4 and 5 buttons (forward and back buttons)? Will I have to update several config files for each app that I want to have these buttons mapped for?
 
Old 02-22-2003, 05:56 AM   #2
canon
Member
 
Registered: Feb 2003
Location: Seattle & N.Ireland
Distribution: Suse 9.current
Posts: 40

Rep: Reputation: 15
i've heard of people mapping the mouse button input to a keyboard instance of Alt+Left and Alt+Right for forward and back navigation, and am looking for information on how to do that myself... i'll be watching this post too!
 
Old 01-21-2004, 09:05 AM   #3
rdoucet
Member
 
Registered: Mar 2003
Location: Québec, Canada
Posts: 33

Rep: Reputation: 15
Hi!

I am currently trying all kind of things, but the closest I came to get it to work was that the side buttons were going "Page up" and "Page down".

Following another thread.

If someone has any idea, please post it here!!

Thanks


Richard
 
Old 01-26-2004, 12:55 PM   #4
hellblade
Member
 
Registered: Jan 2004
Location: Greece
Distribution: Debian Sid
Posts: 58

Rep: Reputation: 15
This is an old thread but today I found a solution that works fine for me.

After you have configured your mouse (all buttons working) through XF86config file, download and install a program called imwheel.
Create a text file in your home and name it .imwheelrc containing the following:
Code:
"(null)"
None, Left, Alt_L|Left
None, Right, Alt_L|Right

".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
* In this forum another thread suggested:
Code:
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
but it didn't worked for me. You may try that instead of mine.

Then create a text file in your home and name it .Xsession containing the following:
Code:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/bin/imwheel -p -b "67"
/usr/bin/x-session-manager
to make changes work automatically when you start your window manager.

* If your buttons don't work you might have to change "pointer = 1 2 3 6 7 4 5" to something else.
 
Old 01-27-2004, 06:57 PM   #5
hellblade
Member
 
Registered: Jan 2004
Location: Greece
Distribution: Debian Sid
Posts: 58

Rep: Reputation: 15
This may not work for everyone so another solution is to create a file named lets say .mouse_buttons in your home. It must contain:
Code:
#!/bin/bash

imwheel -p -b "67" &
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Then open a console and while you are in your home run chmod +x .mouse_buttons. Go in ~/.kde/Autostart and create a new Link to application... and name it lets say mouse_buttons.desktop. Then right click and select Properties. In the Application tab -> Command: bash "~/.mouse_buttons" and click on OK.

Every time you log into KDE this script will be executed.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse side buttons (mixed up mapping) hometoast Linux - Hardware 2 10-05-2005 03:21 PM
Mouse Mapping Question Ryeguy_24 Linux - Hardware 1 08-22-2004 02:01 PM
Mouse button mapping beyond 4-5 Nichole_knc Slackware 1 07-02-2004 06:26 AM
Mapping mouse buttons in Mandrake 9.2 gvantassel Linux - Hardware 1 12-31-2003 09:46 AM
Mapping the mouse in X zoomzoom Linux - Software 2 12-12-2003 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:16 PM.

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