| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
|
|
By billy rauter at 2008-10-16 23:58
|
|
Hello all!
I wanted to use imwheel with my ancient logitech corded and balled four button mouse. The searches did not come up with anything conclusive but with some bits here and tweaking there I got it to work and am posting this in case someone might find it useful. Remember that this is what worked for me; it might not do so for you. A page that came close to providing a working solution was http://legroom.net/howto/mouse . My mouse needed a slightly different setup though, so some adjustments were necessary.
The main objective was to make command kommand in kde 3 to work from the middle button and to have the K menu on the thumb of the mouse. I'll walk you through this and then you can modify the procedure to do what you want.
Install imwheel, xmodmap and kommand, if you haven't done so.
Launch kommand from the command line and set it's shortcut to ctrl+menu, or whatever.
Now let’s get that rodent section xorg.conf right, this works on my system:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "6"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6"
Option "Resolution" "100"
Option "Emulate3Buttons" "true"
EndSection
And, the imwheelrc:
Code:
".*"
None, Up, Control_L|Menu
"(null)"
None, Up, Control_L|Menu
After that we just need a simple startup script or something, like this autostart.sh in ~/.kde/Autostart. We’ll adjust the button sequence with xmodmap to flip the middle and thumb buttons. Remember to make the file executable.
Code:
#! /bin/sh
/usr/bin/xmodmap -e "pointer = 1 6 3 4 5 2" &
/usr/bin/imwheel -k -b "6" &
exit
You might want to put kommand in there too, pending your sessions configuration.
That should be it. I'm sure that there might be cooler ways to do this...
|
|
All times are GMT -5. The time now is 06:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|