scripts-main/mousemove
2018-06-21 22:49:50 -05:00

25 lines
503 B
Bash

#!/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