#!/bin/bash mousemovefile=/tmp/mousemove if [ -f $mousemovefile ]; then rm $mousemovefile notify-send "Mouse moves no more" -i /usr/share/icons/gnome/48x48/devices/display.png else notify-send "MouseMoves" -i /usr/share/icons/gnome/48x48/devices/display.png touch $mousemovefile sleep .1 while [ -f $mousemovefile ] do xdotool mousemove --sync 1000 500 xdotool click 1 sleep 3 xdotool mousemove_relative --sync 0 80 xdotool click 1 sleep 1 done elseif sudo killall mousemove fi