Saw your reddit post because I got a HUGE recently, found the mapping irritating and researched the issue.
#!/bin/bash
mouse="$(xinput --list --id-only 'pointer:ELECOM TrackBall Mouse HUGE TrackBall')"
# button functions:
# 4 to 7 is scroll
# 10 to 12 is f1-3; OS mapped (nop)
left=1; middle=2; right=3; back=8; forward=9
# button locations default:
# thumb: left, scrollwheel (with middle), forward, backwards
# index: f1 f2
# pinky: right, f3
# button locations mapping:
# thumb: left, scrollwheel (with f1), right, f2
# index: forward, backwards
# pinky: middle, f3
xinput set-button-map $mouse \
$left 10 $middle 4 5 6 7 11 $right $forward $back 12
# 1 2 3 4 5 6 7 8 9 10 11 12
Saw your reddit post because I got a HUGE recently, found the mapping irritating and researched the issue.
Here's my take: