First Commit
This commit is contained in:
24
Server/mousemove
Executable file
24
Server/mousemove
Executable file
@ -0,0 +1,24 @@
|
||||
#!/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
|
Reference in New Issue
Block a user