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.
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.
Is there a possibility a setup tool is available to handle this?
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/