Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-20-2005, 12:41 AM   #1
Registered: Aug 2004
Location: Ohio
Distribution: Slackware 9.1/10/10.1 RedHat circa 2000, Knoppix, OpenSuse 10.0/10.1
Posts: 122

Rep: Reputation: 15
Mouse clicks link to alt-func?

There is one thing that I miss that Windows had. The ability to use my 4th and 5th mouse buttons to more forward and backward in firefox, explorer, etc. I wanna know is there anyway to link those buttons to alt-< and alt->.
Old 02-20-2005, 03:15 AM   #2
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Well, the first step would be to add a few lines to your xorg.conf, mouse section:
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
to specify the amunt of buttons and make the scrollwheel work, but I guess you allready have these if your scrollwheel works.. Oh yeah, dont be fooled by the big numbers.. The buttons are in this order:
1. left mouse button
2. middle mouse button
3. right mouse button
4. thumb button 1
5. thumb button 2
6. scrollwheel up/down (dun remember which order)
7. scrollwheel up/down (dun remember which order)

Im not absolutely sure on the order (see xmodmap note later on)

So, once you have all your buttons ready for use, now we can use some program to bind them. Now, you might have the buttons in the wrong order, heres a short script I fix my ordering with upon X startup:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
I personally use xbindkeys to bind my mouse buttons, but that can only do shell commands.. But, ive noticed that if I dont have xbindkeys on, firefox can figure out we have more buttons than usually, and use the thumb buttons for back / next.. There are other nifty progs too, but sorry, cant remember names..

Hope this babble helps.. (;
Old 02-20-2005, 11:22 AM   #3
Registered: Aug 2004
Location: Ohio
Distribution: Slackware 9.1/10/10.1 RedHat circa 2000, Knoppix, OpenSuse 10.0/10.1
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks for the head start!


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
random mouse clicks SuSE 9.3 MichaelLange Linux - Hardware 3 03-09-2006 05:10 PM
difference between function declaration: func() and func(void) koyi Programming 4 11-19-2005 10:19 AM
How to capture clicks from mouse to a file floydigus Linux - Hardware 2 07-02-2005 01:40 AM
Simulated mouse clicks in linux? devilkin Programming 2 02-14-2005 07:59 AM
Middle mouse clicks stopped being recognized KETrel Linux - Hardware 1 10-04-2004 07:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 PM.

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