Fix sluggish mouse cursor

I find the cursor speed is sometimes to slow on my Ubuntu machine with a Logitech MX trackball

And for reasons I dont recall I wanted to set the speed with a script instead of the setting application

 

#!/bin/bash
xinput set-prop "pointer:Logitech MX Ergo" "libinput Accel Speed" 1