You are not logged in.
Greetings!
So, scroll wheel clicking sucks. My mouse has these nice thumb buttons, so I want one of those to take over the role of wheel-clicking -- i.e. when I thumb-click, I want the O/S to act as if I clicked the wheel.
I cannot for the life of me figure out how. What's worse, I had it working in Ubuntu, but no idea how I made it work back then. I'm guessing that udev/hwdb played a role, but searching the interwebs, all I can find is how to remap keyboard_btn's, nothing on mice.
Wayland/Sway -- any pointers, anyone?
Thanks in advance!
Last edited by ben_shirazi (2020-11-16 21:22:44)
Offline
This needs to be provided by your wayland compositor, see https://github.com/swaywm/sway/issues/3960 for potential pointers.
Offline
This needs to be provided by your wayland compositor, see https://github.com/swaywm/sway/issues/3960 for potential pointers.
Thanks V1del! I tried the above (had remnants of it from my configuration backup), but it has problems registerering button_release.
Couldn't this functionality be provided more elegantly by some lower layer, though? The last guy in the Github thread hints at a possible solution with hwdb, which is the one I was sort of fishing for Doesn't anyone have something like that working? All I see out there (e.g [1]) only deals in keyboards.
Offline
So *this* turned out to be the solution:
# cat /etc/udev/hwdb.d/90-razer-300.hwdb
evdev:input:b0003v1038p1710*
KEYBOARD_KEY_90004=btn_middle
Where 90004 was found by evtest, and btn_middle was somewhat guesswork -- works, though. I thought that KEYBOARD_KEY should be something else when we were talking rodents, but apparently not.
Thanks for the push V1del
Last edited by ben_shirazi (2020-11-16 21:21:55)
Offline