mousemove.sh 265 B

123456789101112131415
  1. #!/bin/bash
  2. LENGTH=100
  3. #
  4. # Set DELAY to the desired number of seconds between each move of the mouse pointer.
  5. DELAY=30
  6. #
  7. while true
  8. do
  9. for ANGLE in 0 90 180 270
  10. do
  11. xdotool mousemove_relative --polar $ANGLE $LENGTH
  12. sleep $DELAY
  13. done
  14. done