Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Mapping Logitech Anywhere MX buttons with xbindkeys?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Thu Jul 31, 2014 8:58 pm    Post subject: [Solved]Mapping Logitech Anywhere MX buttons with xbindkeys? Reply with quote

Hi All,

Having a hard time wrapping my brain around using xbindkeys to map my mouse buttons to perform certain standard functions.

What works:

Left mouse (b:1).

Right mouse (b:3).

Scroll-wheel up/down (b:4 and 5).

What I would like:

Forward and back thumb buttons (b:9 and eight). Had to write eight or else I get a smiley face.

Scroll-wheel tilt, left and right (b:6 and 7).

Top button (b:2) for an Expose like function to show all open windows (keyboard shortcut Ctrl+Fn+F10) or for the application launcher (keyboard shortcut unknown).

Is xbindkeys the best way to do this? I've been searching most of the day on this and I seem to be getting nowhere.

Does anyone have an example xbindkeysrc they could post? Also, is xbindkeys the best way to accomplish this?

Thank you,

j_d


Last edited by john_deaux on Fri Aug 01, 2014 5:25 pm; edited 3 times in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3691
Location: Dallas area

PostPosted: Thu Jul 31, 2014 9:19 pm    Post subject: Reply with quote

From my .xbindkeysrc

# Mouse Buttons
"xvkbd -xsendevent -text "\[Prior]""
m:0x0 + b:6
"xvkbd -xsendevent -text "\[Next]""
m:0x0 + b:7
"xvkbd -xsendevent -text "\[Home]""
m:0x0 + b:8
"xvkbd -xsendevent -text "\[Shift]""
m:0x0 + b:9

I don't use it anymore but had it laying around
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Thu Jul 31, 2014 10:32 pm    Post subject: Reply with quote

Thank you kind moose!

That looks somewhat different from what I've been seeing as examples, but will give it a go.

Cheers!

j_d
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3691
Location: Dallas area

PostPosted: Thu Jul 31, 2014 11:47 pm    Post subject: Reply with quote

You can change "xvkbd -xsendevent -text "\[Prior]"" to some command instead.

the m:... stuff defines the mouse button

Code:
"xterm"
  control + b:2

would exec an xterm when control and mouse button 2 were pressed
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
john_deaux
n00b
n00b


Joined: 16 Sep 2013
Posts: 56
Location: On the banks of the Pontchartrain

PostPosted: Fri Aug 01, 2014 5:29 pm    Post subject: Reply with quote

I marked this as solved but I did not do it with xbindkeys.

I ended up using xmodmap as shown here: http://www.ocf.berkeley.edu/~reinholz/freebsd/xorg_mouse.html

Cheers!

j_d
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3691
Location: Dallas area

PostPosted: Fri Aug 01, 2014 5:59 pm    Post subject: Reply with quote

Glad it works.

I used to use xbindkeys but I too use xmodmap, but for the kbd media keys not the mouse
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum