function similar to "bash screensaver"