25 lines
506 B
Bash
Executable File
25 lines
506 B
Bash
Executable File
#!/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 0 500
|
|
# xdotool click 1
|
|
sleep 3
|
|
xdotool mousemove_relative --sync 1000 500
|
|
# xdotool click 1
|
|
sleep 1
|
|
done
|
|
|
|
elseif
|
|
sudo killall mousemove
|
|
fi
|