F5F Stay Refreshed Software Operating Systems Change mouse button settings in Linux using command line tools or desktop utilities.

Change mouse button settings in Linux using command line tools or desktop utilities.

Change mouse button settings in Linux using command line tools or desktop utilities.

I
iJedi007
Member
157
03-19-2023, 02:14 PM
#1
You're trying to change the function of your mouse buttons so they control volume instead of navigation. You've identified the correct keycodes: 114 for volume down and 115 for volume up. To remap them, you'll need to adjust your system settings or use a mouse driver tool that allows custom button mappings. Make sure to save your changes and test the new functionality.
I
iJedi007
03-19-2023, 02:14 PM #1

You're trying to change the function of your mouse buttons so they control volume instead of navigation. You've identified the correct keycodes: 114 for volume down and 115 for volume up. To remap them, you'll need to adjust your system settings or use a mouse driver tool that allows custom button mappings. Make sure to save your changes and test the new functionality.

J
Juan2610
Posting Freak
875
04-01-2023, 09:39 PM
#2
I don't have a specific distribution to mention. Could you clarify which one you're referring to?
J
Juan2610
04-01-2023, 09:39 PM #2

I don't have a specific distribution to mention. Could you clarify which one you're referring to?

Y
ytOXGaming
Junior Member
8
04-02-2023, 04:22 AM
#3
Is there a possibility a setup tool is available to handle this?
Y
ytOXGaming
04-02-2023, 04:22 AM #3

Is there a possibility a setup tool is available to handle this?

C
ChiariWarrior
Junior Member
18
04-02-2023, 10:34 AM
#4
If not, xinput can do this per-application. Presumably, with a bit of elbow-grease, you could set it to control volume while in your browser and your media players. Unfortunately, I don't see a way to do this globally unless a distro specifically allows that in mouse configuration. Here's the link: https://wiki.mbirth.de/know-how/software...:~:text=To remap mouse buttons permanently%2C you can use,xinput set-button-map <device-id> <button1> <button2> <button3> … <buttonN> xinput should be available on most distros. It's certainly on Debian and Arch-based ones. edit: xmodmap or key-mapper-gtk should let you do it globally, but I've never used either. Worth checking out, though - https://linuxhint.com/map-a-mouse-button-in-linux/
C
ChiariWarrior
04-02-2023, 10:34 AM #4

If not, xinput can do this per-application. Presumably, with a bit of elbow-grease, you could set it to control volume while in your browser and your media players. Unfortunately, I don't see a way to do this globally unless a distro specifically allows that in mouse configuration. Here's the link: https://wiki.mbirth.de/know-how/software...:~:text=To remap mouse buttons permanently%2C you can use,xinput set-button-map <device-id> <button1> <button2> <button3> … <buttonN> xinput should be available on most distros. It's certainly on Debian and Arch-based ones. edit: xmodmap or key-mapper-gtk should let you do it globally, but I've never used either. Worth checking out, though - https://linuxhint.com/map-a-mouse-button-in-linux/