Does anyone have a link or document on how to write a screensaver for Linux?
The simplest way to write your own screensaver for Linux is by creating a new module for the program xscreensaver. This way, all is needed is a program that draws something, while all the rest (activating the screen saver when needed, locking the screen, checking passwords, etc) is done by xscreensaver itself.
If you want to start the screensaver on its own, you need to add a command in startup applications. Note: Open the startup applications via dock search. You need to click on Edit and then on the following window, type Xscreensaver beside Name. Type in the command: xscreensaver -nosplash beside the command box.
System -> Preferences -> Screensaver. There's a checkbox to lock after the screensaver activates, and there's checkbox and a slider to activate the screensaver after a certain amount of time.
Here's some info on xscreensaver that you may find of use: xscreensaver also there's an FAQ here.
There's a simple tutorial here too: simplesquares (from the first link)
This might be of interest to you:
http://www.jwz.org/xscreensaver/faq.html#writing-savers
it's from the xscreensavers homepage, it's sort of the de facto screensaver
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With