You are not logged in.

#1 2005-08-21 16:16:44

sweiss
Member
Registered: 2004-02-16
Posts: 635

Mapping extra mouse buttons

Hey.
I have a mouse with 7 buttons, which I recently activated all of it's buttons. So now I have 2 exra buttons, button 6 and 7.

I'd like to map one of them to be alt+button1, so that I can drag a window with a single mouse button from every position.

Can you please tell me how to do so?

Thanks.

Offline

#2 2005-08-21 20:10:44

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Mapping extra mouse buttons

imwheel does this. you should be able to find it in the AUR.

Offline

#3 2005-08-22 16:22:01

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Mapping extra mouse buttons

Thanks. I'm having some issues with imwheel though, hope you can help me out a bit.

I have 2 side buttons, in my mouse, according to xev they are mapped as button 6 and button 7.

Now, I'd like to map them both to alt+button1 (left mouse button).
This is what my ~/.imwheelrc looks like:

".*"
 None, Up, Alt_L|Button1
 None, Down, Alt_L|Button1

I'm launching imwheel using `imwheel -b "67"` but it doesn't seem to work.
Any ideas?

Offline

#4 2005-08-22 19:44:18

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: Mapping extra mouse buttons

i haven't played with imwheel in a long time, since firefox natively supports back/forward buttons now.

anyway, Up and Down are your scroll wheel, so i'd suggest trying different buttons there.

Offline

#5 2005-08-23 04:15:42

keevn7
Member
From: Lancaster, OH, US
Registered: 2005-06-09
Posts: 206
Website

Re: Mapping extra mouse buttons

You are most likely going to have to flip some buttons around with xmodmap. Try the following.

xmodmap -e "pointer = 1 2 3 7 6 4 5"

Leave the settings for imwheel the same though.

Offline

#6 2005-08-23 05:42:48

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: Mapping extra mouse buttons

I've done some testing and the Up and Down naming seems ok.

I think I need to put a delay between the output keys, so that Alt_L is pressed, and after a 10th of a second Button1 is pressed.

Any ideas as to how I might achieve that?

Offline

Board footer

Powered by FluxBB