Hello all.
I have two trackballs I've been using instead of computer mice:
A Logitech Trackman Marble, and an Elecom M-DT2 Deft.
The former has no scroll wheel, and the latter's wheel doesn't work, but the rest of the machine is fine.
When I boot into Windows, I use a program called 'X-Mouse Button Control' to cause the trackball's ball to function as a scroll wheel when a button is pressed (both trackballs have at least two extra buttons).
Here on Solus, I found two terminal commands that allow me to achieve the same ends with regard to the Logitech:
xinput --set-button-map "Logitech USB Trackball" 1 2 3 4 5 6 7 8 2
and
xinput set-prop "Logitech USB Trackball" 337 0, 0, 1
However, both commands only last until the next reboot / login, so my question is:
How can I make those two commands stick?
I've never written a startup script, so if that is what's needed, I'd appreciate a nod in the direction of an article on how to do this in Solus.
Any help, or referral to help, will be greatly appreciated.