Disable mouse 4 and mouse 5 going back and forward on Linux Mint
On Linux Mint, mouse 4 and mouse 5 are automatically bound to go back and forward in the file manager, all browsers, settings, and probably elsewhere. I was wondering if it was possible to disable this functionality without completely disabling mouse 4 and mouse 5.
The reason for this is I use mouse 4 for push to talk, and having the browser or the file manager go back whenever I want to talk is extremely annoying.
linux mouse linux-mint
add a comment |
On Linux Mint, mouse 4 and mouse 5 are automatically bound to go back and forward in the file manager, all browsers, settings, and probably elsewhere. I was wondering if it was possible to disable this functionality without completely disabling mouse 4 and mouse 5.
The reason for this is I use mouse 4 for push to talk, and having the browser or the file manager go back whenever I want to talk is extremely annoying.
linux mouse linux-mint
add a comment |
On Linux Mint, mouse 4 and mouse 5 are automatically bound to go back and forward in the file manager, all browsers, settings, and probably elsewhere. I was wondering if it was possible to disable this functionality without completely disabling mouse 4 and mouse 5.
The reason for this is I use mouse 4 for push to talk, and having the browser or the file manager go back whenever I want to talk is extremely annoying.
linux mouse linux-mint
On Linux Mint, mouse 4 and mouse 5 are automatically bound to go back and forward in the file manager, all browsers, settings, and probably elsewhere. I was wondering if it was possible to disable this functionality without completely disabling mouse 4 and mouse 5.
The reason for this is I use mouse 4 for push to talk, and having the browser or the file manager go back whenever I want to talk is extremely annoying.
linux mouse linux-mint
linux mouse linux-mint
asked May 25 '17 at 3:50
kabbkabb
1166
1166
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The reason mouse buttons 4 and 5 go "back and forward" is that these are the mouse buttons that correspond to scroll wheel move events. So all applications that respond to scroll wheel events will respond to those buttons.
You can use the ButtonMapping
option in the X evdev
driver section of your xorg.conf
file to map your "mouse 4" to another event, e.g. "button 6", and then configure "button 6" for push to talk.
See man evdev
for details. Look at your Xorg.log
to figure out if your configuration worked after restarting the X server.
add a comment |
You can remap the buttons with xinput
$ xinput
This should list your input devices. Note the id of your mouse.
$ xinput get-button-map <mouse-id>
(mouse id was 14 in my case)
This will print something like 1 2 3 4 5 6 7 8 9 10 11 12
$ xinput set-button-map <mouse-id> 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
This will disable all except the primary buttons.
Source: https://forums.linuxmint.com/viewtopic.php?t=241162
To persist the remap on reboot, create and save the following file-
#/usr/share/X11/xorg.conf.d/my-mouse-config.conf
Section "InputClass"
Identifier "<mouse-name>"
Option "ButtonMapping" "1 2 3 0 0 0 0 0 0 0 0 0 0 0 0"
EndSection
source - https://askubuntu.com/a/407889/75357
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212661%2fdisable-mouse-4-and-mouse-5-going-back-and-forward-on-linux-mint%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The reason mouse buttons 4 and 5 go "back and forward" is that these are the mouse buttons that correspond to scroll wheel move events. So all applications that respond to scroll wheel events will respond to those buttons.
You can use the ButtonMapping
option in the X evdev
driver section of your xorg.conf
file to map your "mouse 4" to another event, e.g. "button 6", and then configure "button 6" for push to talk.
See man evdev
for details. Look at your Xorg.log
to figure out if your configuration worked after restarting the X server.
add a comment |
The reason mouse buttons 4 and 5 go "back and forward" is that these are the mouse buttons that correspond to scroll wheel move events. So all applications that respond to scroll wheel events will respond to those buttons.
You can use the ButtonMapping
option in the X evdev
driver section of your xorg.conf
file to map your "mouse 4" to another event, e.g. "button 6", and then configure "button 6" for push to talk.
See man evdev
for details. Look at your Xorg.log
to figure out if your configuration worked after restarting the X server.
add a comment |
The reason mouse buttons 4 and 5 go "back and forward" is that these are the mouse buttons that correspond to scroll wheel move events. So all applications that respond to scroll wheel events will respond to those buttons.
You can use the ButtonMapping
option in the X evdev
driver section of your xorg.conf
file to map your "mouse 4" to another event, e.g. "button 6", and then configure "button 6" for push to talk.
See man evdev
for details. Look at your Xorg.log
to figure out if your configuration worked after restarting the X server.
The reason mouse buttons 4 and 5 go "back and forward" is that these are the mouse buttons that correspond to scroll wheel move events. So all applications that respond to scroll wheel events will respond to those buttons.
You can use the ButtonMapping
option in the X evdev
driver section of your xorg.conf
file to map your "mouse 4" to another event, e.g. "button 6", and then configure "button 6" for push to talk.
See man evdev
for details. Look at your Xorg.log
to figure out if your configuration worked after restarting the X server.
answered May 25 '17 at 6:13
dirktdirkt
9,25231221
9,25231221
add a comment |
add a comment |
You can remap the buttons with xinput
$ xinput
This should list your input devices. Note the id of your mouse.
$ xinput get-button-map <mouse-id>
(mouse id was 14 in my case)
This will print something like 1 2 3 4 5 6 7 8 9 10 11 12
$ xinput set-button-map <mouse-id> 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
This will disable all except the primary buttons.
Source: https://forums.linuxmint.com/viewtopic.php?t=241162
To persist the remap on reboot, create and save the following file-
#/usr/share/X11/xorg.conf.d/my-mouse-config.conf
Section "InputClass"
Identifier "<mouse-name>"
Option "ButtonMapping" "1 2 3 0 0 0 0 0 0 0 0 0 0 0 0"
EndSection
source - https://askubuntu.com/a/407889/75357
add a comment |
You can remap the buttons with xinput
$ xinput
This should list your input devices. Note the id of your mouse.
$ xinput get-button-map <mouse-id>
(mouse id was 14 in my case)
This will print something like 1 2 3 4 5 6 7 8 9 10 11 12
$ xinput set-button-map <mouse-id> 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
This will disable all except the primary buttons.
Source: https://forums.linuxmint.com/viewtopic.php?t=241162
To persist the remap on reboot, create and save the following file-
#/usr/share/X11/xorg.conf.d/my-mouse-config.conf
Section "InputClass"
Identifier "<mouse-name>"
Option "ButtonMapping" "1 2 3 0 0 0 0 0 0 0 0 0 0 0 0"
EndSection
source - https://askubuntu.com/a/407889/75357
add a comment |
You can remap the buttons with xinput
$ xinput
This should list your input devices. Note the id of your mouse.
$ xinput get-button-map <mouse-id>
(mouse id was 14 in my case)
This will print something like 1 2 3 4 5 6 7 8 9 10 11 12
$ xinput set-button-map <mouse-id> 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
This will disable all except the primary buttons.
Source: https://forums.linuxmint.com/viewtopic.php?t=241162
To persist the remap on reboot, create and save the following file-
#/usr/share/X11/xorg.conf.d/my-mouse-config.conf
Section "InputClass"
Identifier "<mouse-name>"
Option "ButtonMapping" "1 2 3 0 0 0 0 0 0 0 0 0 0 0 0"
EndSection
source - https://askubuntu.com/a/407889/75357
You can remap the buttons with xinput
$ xinput
This should list your input devices. Note the id of your mouse.
$ xinput get-button-map <mouse-id>
(mouse id was 14 in my case)
This will print something like 1 2 3 4 5 6 7 8 9 10 11 12
$ xinput set-button-map <mouse-id> 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
This will disable all except the primary buttons.
Source: https://forums.linuxmint.com/viewtopic.php?t=241162
To persist the remap on reboot, create and save the following file-
#/usr/share/X11/xorg.conf.d/my-mouse-config.conf
Section "InputClass"
Identifier "<mouse-name>"
Option "ButtonMapping" "1 2 3 0 0 0 0 0 0 0 0 0 0 0 0"
EndSection
source - https://askubuntu.com/a/407889/75357
edited Dec 30 '18 at 6:24
answered Dec 28 '18 at 21:31
charsicharsi
1335
1335
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212661%2fdisable-mouse-4-and-mouse-5-going-back-and-forward-on-linux-mint%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown