I created a script that does xdotool mousemove_relative 20 20 sleep .5 xdotool mousemove_relative -- -20 -20 so you can see the mouse move back and forth