You are not logged in.
I want to make it so buttons 8 and 9 (the thumb buttons) no longer act as Forward and Back.
I found this page: https://wiki.archlinux.org/index.php/Al … ns_Working
where I find this bit of information:
In most modern applications which use back/forward features, XF86Back is mapped to back and XF86Forward is mapped to forward by default. On most MX mice the thumb buttons resolve to 8 & 9.
xev confirms these buttons are 8 and 9:
ButtonPress event, serial 40, synthetic NO, window 0x3400001,
root 0x2d6, subw 0x0, time 3697158, (31,0), root:(1507,642),
state 0x10, button 9, same_screen YES
ButtonRelease event, serial 40, synthetic NO, window 0x3400001,
root 0x2d6, subw 0x0, time 3697323, (31,0), root:(1507,642),
state 0x10, button 9, same_screen YES
ButtonPress event, serial 40, synthetic NO, window 0x3400001,
root 0x2d6, subw 0x0, time 3698644, (31,0), root:(1507,642),
state 0x10, button 8, same_screen YES
ButtonRelease event, serial 40, synthetic NO, window 0x3400001,
root 0x2d6, subw 0x0, time 3699151, (31,0), root:(1507,642),
state 0x10, button 8, same_screen YESHowever I can't find a way to disable the XF86Back/Forward functions. I want these buttons to remain as buttons 8 and 9 (I use them for push-to-talk), I just don't want those extra functions.
Last edited by YAOMTC (2015-03-21 22:39:05)
Offline
X will not map buttons to keys. But there are many tools that may be doing this on your system - there is no way for us to know what the culprit might be if you don't tell us what you are running. Do you use a DE? If so which one? If not, is something esle running that (re)maps keys?
EDIT: scratch that - xev confirms that these buttons have not been mapped to those keys on your system, so it must be the application in use that treats buttons 8/9 like forward/back. What application is this?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Dolphin does this, Firefox does this, Chromium/Chrome does this, it seems to be fairly universal.
I'm using KDE, which lacks a specific setting for this - I've checked.
Last edited by YAOMTC (2015-03-21 23:02:55)
Offline
I tried xbindkeys:
"NoCommand"
b:8
"NoCommand"
b:9Doesn't change anything. I don't know if xbindkeys has the ability to stop something from happening, only to cause something to happen. I could be wrong but I don't see anything in the manual about this...
Offline
I wonder if btnx would help with this. I might try compiling this for myself...
EDIT: Nope, doesn't solve this. I could see this being useful elsewhere, though.
Last edited by YAOMTC (2015-03-27 19:53:15)
Offline
I'm pretty sure you need to remap those buttons to be other key/buttons. Like I said above, xev in showing that those are not being recognized as XF86Forward/Back, but only as their button number. The applications are responding to those button numbers with forward/back actions.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ahh, okay! I'll have to try that, thanks!
Will just have to find a button that doesn't conflict with anything...
Offline
After a bit of research, I still have no idea how to remap mouse buttons. Keyboard buttons seem fairly straightforward with xmodmap, but mice... not so much.
Offline
After a bit of research, I still have no idea how to remap mouse buttons. Keyboard buttons seem fairly straightforward with xmodmap, but mice... not so much.
This does seem to be a bit underdocumented.
Here are some materials you may wish to review:
http://linus.haxx.se/2013/03/07/mouse-b … xorg-conf/
https://help.ubuntu.com/community/Mouse … ng_buttons
http://www.alanbriolat.co.uk/remapping- … lucid.html
So maybe try something like:
Section "InputClass"
Identifier "MouseName button remap"
MatchProduct "MouseProductName"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "ButtonMapping" "1 2 3 4 5 6 7 1 2"
EndSectionas a snippet in /etc/X11/xorg.conf.d/
Regards,
Offline
X recognizes at least 18 mouse buttons, so to avoid other conflicts, you could use the xorg.conf approach to map those buttons to higher numbers (e.g. 15 16) unless you want them to be duplicate left/right buttons.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline