note that you can replace the mouse in X using xdotool to do mouse pointer movements and mouse clicks if your window manager, such as i3, supports it. specifically you are looking for xdotool mousemove_relative. movement is in integer amounts specified by parameters.