There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
How do I swap my mouse buttons?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
tjfitz's Avatar
Member with 96 posts.
 
Join Date: Dec 2001
20-Aug-2002, 12:32 AM #1
How do I swap my mouse buttons?
I just installed Red Hat 7.3. I am left-handed, and use the mouse that way too. I know you can configure the mouse buttons for each user account in each environment (i.e. KBE, Gnome, etc.). What I want to know is if there is a way to swap the mouse buttons system-wide. In doing some research I discovered the XF86Config-4 file, so more specifically, what I was hoping for was how I could edit this file to get this result. Here is the pointer section of the file:

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

I guess there is some Option I can add in here to swap mouse buttons for the x-server. If you know another way to accomplish the same result, I would be happy to hear that too.
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
21-Aug-2002, 07:40 AM #2
Dont know for sure. But this link might help you -

SwappingMouseButtons

This is some of the content of that url -

Quote:
Try xmodmap. That's the secret weapon...
In your ~/.Xmodmap file you just need the following 'pointer = 3 2 1'.
Or whichever way you want the buttons to map.

See if this helps...
tjfitz's Avatar
Member with 96 posts.
 
Join Date: Dec 2001
22-Aug-2002, 01:18 AM #3
I have to assume that ~/ means /, right? Well, there is no .Xmodmap file in /. There is a Xmodmap in /etc/X11/, but I don't know if it's the one. Every line had a ! in front of it. Is that a comment, like # ? I think maybe that site was referring to an older version of linux.
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
22-Aug-2002, 02:50 AM #4
Quote:
Posted by tjfitz -

I have to assume that ~/ means /, right? Well, there is no .Xmodmap file in /. There is a Xmodmap in /etc/X11/, but I don't know if it's the one. Every line had a ! in front of it. Is that a comment, like # ? I think maybe that site was referring to an older version of linux.
Yes I know that it was for an earlier ver of Linux. May be it might work with the file that you've . Even the Redhat site doesnt provide any info on customization in the Errata
section.

Did you try to do it using the command 'mouse'?

Try with it and here is a link for RHL 7.2 Errata on Customization -

RHL Kickstart...

Some of the content is -
Quote:
mouse

mouse (required)
Configures the mouse for the system, both in GUI and text modes.
Hope this helps...
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
22-Aug-2002, 10:40 AM #5
btw ~/ refers to your home directory. Using "cd ~" is the quick way to get there.

--Gibbs
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
22-Aug-2002, 10:50 AM #6
Thanks for the info Gibble.

Appreciate it
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
24-Aug-2002, 01:26 AM #7
A couple of minor additions:

The ~ (tilde) character actually refers to "the home directory of". If you don't specify a login ID, it defaults to yours (i.e., ~ is your home directory). You could, for example, refer to root's home directory as ~root, or codejockey's home directory as ~codejockey. You can also use the ~ character in a pathname such as ~codejockey/src/windoze/*.c

You can also return to your home directory simply by using the cd command with no arguments (i.e., cd will return you to your home directory from wherever you are).

Hope this helps.
__________________
The slowest component still sits at the keyboard.
pvc9's Avatar
Distinguished Member with 6,597 posts.
 
Join Date: Jul 2002
24-Aug-2002, 04:01 AM #8
So there it is tjfitz. See if you can do the work from all these suggestions. Try it and get back.



Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:35 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.