Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a mouse with lots of buttons, but it's not a mainstream make like Logitech. For Windows, I have a driver that lets me assign actions like close-window (Ctrl+W) or next-tab (Ctrl+Tab), but I don't have a Linux driver. Since Linux is so flexible, I thought perhaps there is a general way to do this, regardless of brand?

Update: Based on input from Cyrex, I installed and ran sudo apt-get install btnx which found several but not all mouse buttons.
Found: left, right, wheel, wheelclick, thumb fwd, thumb back.
Not found: wheel left, wheel right, thumb middle button.
Vendor ID is 0x04d9, Model ID is 0xa015.

Update 2: In System>Prefs>Mouse there's a lightbulb icon for testing double-click speed. Every working button can turn the bulb on&off, but the missing buttons can't. It would seem that Ubuntu isn't aware of these buttons and thus doesn't register their clicks. I guess I need to hunt for a driver, though a mainstream mouse is probably the easier way.

share|improve this question
Please explain what mouse button 9 is. – acematrix Oct 1 '12 at 19:13
@mateo_salta Got that in seconds before me. – acematrix Oct 1 '12 at 19:14
Do you use Unity? – int_ua Oct 1 '12 at 19:15
What make and model is it? – acematrix Oct 1 '12 at 19:19
@int_ua Yes, I strive use a system configuration as close to the default as I can tolerate. – ændrük Oct 1 '12 at 19:23
show 6 more comments

4 Answers

up vote 2 down vote accepted

If all buttons are detected correctly then you can install btnx:

sudo apt-get install btnx OR sudo aptitude install btnx

Then go to: Applications -> System Tools -> Btnx

It has support for many types of mice

share|improve this answer
I tested my mouse with btnx but it didn't recognize all my buttons. Does this indicate a problem with my mouse (driver?) or with btnx (unlikely I guess)? – Torben Gundtofte-Bruun Jan 4 '11 at 20:57
Am guessing between. Maybe the mouse module is not detecting the mouse correctly so btnx does not either. Can you actually click all the buttons and see if a programa recognizes them, like the click test in the mouse settings. – Luis Alvarado Jan 4 '11 at 21:43
1  
I'm selecting this as the correct answer because btnx allows me to instantly test each mouse button - this proved that Ubuntu simply isn't aware of the extra buttons. I need to get a linux-friendly mouse. – Torben Gundtofte-Bruun Feb 9 '11 at 7:34

If you install the CompizConfig Settings Manager Install CompizConfig Settings Manager then you will be able to set a lot of window management mouse button shortcuts.

It may take some effort working out which button is which.

In the screenshot I am assigning opening the Super+Tab switcher to a left-click of my scroll wheel.

Screenshot

share|improve this answer

enter image description here

Easystroke is a Mouse gesture-recognition application and mouse gesture manager for Ubuntu and Other Linux distribution. it allows user to control ubuntu application with hand drawn mouse gestures or Draw on the Screen. Easystroke work on Tablet PCs, it can be used equally well with a mouse, pen, or even your fingers if you have a touch-sensitive screen.

Install Easystroke in Ubuntu

sudo apt-get install easystroke

If you want installing easystroke via PPA, you can adding a PPA repository, type this command:

sudo add-apt-repository ppa:easystroke/ppa
sudo apt-get update
sudo apt-get install easystroke

For Unity Users : EasyStroke have not used indicator applet yet, so when you run it from menu, you have nothing on Indicator Applet. To solve this problem, simply run these command in terminal:

easystroke -g

It will run EasyStroke and open configuration windows automatically.

Source

share|improve this answer

Easystroke Gesture Recognition is designed primarily for creating custom pointing device gestures, but it can also be used to assign actions to simple button presses.

To use it in this manner,

  1. Open the configuration window.
  2. In Preferences ▸ Behavior ▸ Additional Buttons ▸ Add, select Instant Gestures and then press the desired mouse button in the gray box.

    Easystroke Gesture Recognition - Select a Mouse or Pen Button

  3. In Actions, click Add Action.

  4. Double-click in the Stoke column and then press the desired mouse button again.

  5. Click in the Name, Type and Details columns to set up an action.

    Easystroke Gesture Recognition - Actions

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.