How do i setup the mouse buttons to be all the same?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Boo
Level 7
Level 7
Posts: 1633
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo »

check this out.

http://www.linux-gamers.net/modules/wiw ... se+Buttons

you could set all buttons to the same or only let one work.

:D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Image
Now where was i going? Oh yes, crazy!
telic
Level 3
Level 3
Posts: 188
Joined: Thu Mar 22, 2007 7:48 am

Post by telic »

How do I setup the buttons on the mouse, so that no matter what is pressed, it is always a left-click?
My optical wheel-mouse has two buttons, and emulates a third. I could disable the virtual 3rd button, but that isn't necessary. For this example, all 3 buttons will be mapped to the left button (#1).

Go Terminal to edit the xorg.conf file in superuser mode...

Code: Select all

sudo gedit /etc/X11/xorg.conf
Find the "InputDevice" section for the mouse. It looks something like this...

Code: Select all

Section "InputDevice"
    Identifier   "Configured Mouse"
    Driver       "mouse"
    Option       "CorePointer"
    Option       "Device" "/dev/input/mice"
    Option       "Emulate3Buttons" "true"
EndSection
Append the following option, to remap all (3) of the mouse buttons to button #1...

Code: Select all

Option   "ButtonMapping" "1 1 1"
Note there's one "1" for each mouse button that'll be mapped to button #1.

The X mouse section then looks something like this, with the ButtonMapping option...

Code: Select all

Section "InputDevice"
    Identifier   "Configured Mouse"
    Driver       "mouse"
    Option       "CorePointer"
    Option       "Device" "/dev/input/mice"
    Option       "Emulate3Buttons" "true"
    Option       "ButtonMapping" "1 1 1"
EndSection
Save the xorg.conf file. Close all open apps and restart the X server (CTRL-ALT-Backspace).

All (3) of the mouse buttons now act as the left button.

Does this work for you?

-------
Locked

Return to “Beginner Questions”