A simple Linux screensaver framework
- This is a Linux only screensaver framework.
- To run the launcher you will need to use Gnome as your desktop environment.
- A working Go and C compiler and installed Raylib dependencies.
This framework is composed of multiple parts, a launcher, multiple savers and a command tool to send commands to the launcher. The launcher is responsible for the launching of the savers, while the savers themselves just draw something nice on-screen and exit when input is detected.
The launcher uses a timer, that when expired, will launch the defined executable. Any input will reset the timer and delay the launch.
Just run the install.sh
script. This will compile and install the various binaries.
Use Tweaks to add to start-up applications.
You may need to create a desktop launcher to be used with newer version of Tweaks.
Create a file containing the following and place in ~/local/share/applications
.
[Desktop Entry]
Type=Application
Name=Screensaver Launcher
Exec=screensaver-launcher -saver screensaver-digital-rain -timer 15m
screensaver-launcher -timer 15m -saver screensaver-game-of-life > /dev/null 2>&1
In this example you can see the screensaver-game-of-life
saver is being
executed after the timer expires but any executable can be launched.
You can use the command tool to send commands to the launcher to control its behaviour.
Command | Description |
---|---|
screensaver-command -reset |
Reset the launcher timer. |
screensaver-command -activate |
Expires the timer and activate the specified saver. |