This is the easiest way I’ve found to setup an auto-clicker with a Corsair mouse on Linux. After installing ckb-next and xdotool, map these commands to one of the buttons:

Under “Launch program on key press” xdotool click --repeat 1000 --delay 100 1 and under “Launch program on key release” killall xdotool

ckb-next screenshot