Does anyone have a link or document on how to write a screensaver for Linux?
Google "xscreensaver", and you can learn from its code, rather than starting from scratch.