13
How would I rebind my mouse buttons with a Razor Naga?
(sh.itjust.works)
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
Find device ID with xinput list
Check button mapping with xinput get-button-map
Swap button assignment (eg 8<->9) with xinput set-button-map 1 2 3 4 5 6 7 9 8
xinput
will work under Xorg, but not Wayland.I actually don't think I've needed to remap mouse buttons on Wayland. Most stuff like that got pushed to the compositor in Wayland. I assume that, given that I'm using sway, sway has some mechanism. Probably Gnome and KDE do too. OP didn't indicate what environment he was in, though.
https://wiki.archlinux.org/title/Input_remap_utilities
Has some packages.
God damn that's so good to know.
I've been neglecting this issue on a subset of vms. At work, no less.
No real issue just a headache.
Thank you. Deobfuscated a pain point I never bothered to look into. I can probably work around it now.
I'm specifically trying to bind a button to dpi/sensitivity cycling.