oBook‎ > ‎G2K‎ > ‎

Mouse Jiggle Windows; Linux

Windows

posted Aug 31, 2016, 5:14 PM by Javad Taghia

https://mousejiggler.codeplex.com/

Stop Linux to go to sleep by mouse movement

posted Aug 31, 2016, 5:10 PM by Javad Taghia   [ updated Aug 31, 2016, 5:13 PM ]

1. 
sudo apt-get install xdotool

2.
xdotool getmouselocation

You will need the x:XXX and y:YYY (bottom). You can move the mouse from here, but let windows stay where they are. Type
3. Open an editor 
gedit script
eg:
4. paste the following:

#!/bin/bash

while [ 1 ]; do
xdotool mousemove 714 704
sleep 360
xdotool mousemove 719 709
sleep 360
done

5. save it.
6. 
chmod +x script

7. run it as:
./script

Download the script:
https://drive.google.com/file/d/0BxxliwIPgBT3N01mbHZtbEJUc2s/view?usp=sharing

1-2 of 2