Created
April 20, 2010 15:24
-
-
Save nicholas-gh/372623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Please click on your browser" | |
BROWSER=$(xwininfo -int | awk '/Window id/ {print $4}') | |
while :; do | |
inotifywait -e close_write -r . | |
echo "Small sleep to let server restart..." | |
sleep 2 | |
echo "Sending F5" | |
EDITOR=`xdotool getactivewindow` | |
xdotool windowactivate $BROWSER | |
xdotool key --window $BROWSER Escape | |
xdotool key --window $BROWSER F5 | |
xdotool windowactivate $EDITOR | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment