Create bash script. 

# to start the loop just call xinit ./thameofthisfile