Difference between revisions of "automate X keyboad and mouse with xdotool"

From thelinuxwiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
  
 
move mouse 1 pixel every minute (to avoid screen timeouts or afk status)
 
move mouse 1 pixel every minute (to avoid screen timeouts or afk status)
  # while true; do; xdotool mousemove_relative --sync 0 1; sleep 60; done &
+
  # while true; do xdotool mousemove_relative --sync 0 1; sleep 60; done &
  
 
same as above for for only the next 8 hours
 
same as above for for only the next 8 hours
  # for 1 in {1..480}; do; xdotool mousemove_relative --sync 0 1; sleep 60; done &
+
  # for i in {1..480}; do xdotool mousemove_relative --sync 0 1; sleep 60; done &
  
 
[[category:automation]]
 
[[category:automation]]

Latest revision as of 16:43, 9 April 2015


move mouse 1 pixel every minute (to avoid screen timeouts or afk status)

# while true; do xdotool mousemove_relative --sync 0 1; sleep 60; done &

same as above for for only the next 8 hours

# for i in {1..480}; do xdotool mousemove_relative --sync 0 1; sleep 60; done &