wallrnd

A configurable generator of random abstract time-aware wallpapers

License: MIT

crates.io API


Direct dependencies

serde API

serde_derive API

rand API

toml API

chrono API

delaunator API


This project aims to provide a utility for generating random abstract wallpapers.

It is only intended for generating the images (SVG), not actually setting them as a wallpaper.

A bash script to automatically change wallpaper is provided, and has been tested on Ubuntu 20.04 (Focal Fossa). Portability of this script is outside of the scope of this project (the image generator however should be portable to any OS), but scripts that work for other shells/distros are welcome.


diff ! Warning: Breaking change ! Since the addition of command line options, your launch script may be broken for the latest version ! You can either download a version of wallrnd earlier than Jul 15, 2020, or see the new format ! in setup/set-wallpaper (previous script moved to setup/set-wallpaper-obsolete) ! To update your script, all you need is to replace - wallrnd /path/to/image.svg /path/to/config.toml ! with + wallrnd --image /path/to/image.svg --config /path/to/config.toml

diff ! Warning: Breaking change ! Format for themes weight has changed to be more versatile ! Old format: - theme = [["<C1>", <W1>], ["<C2>", <W2>], ...] ! New format: + theme = ["<C1> x<W1>", "<C2> x<W2>", ...] ! To update your configuration file, run @@ perl -pi -e 's/\[\"([a-zA-Z0-9_]*)\", *([0-9]+)\]/\"$1 x$2\"/g' setup/wallrnd.toml @@

Recommended setup (executable wallrnd)

Performance is good enough that running it every 60 seconds is not even noticeable (4-core Intel i5).

Thanks to nice giving the program a very low priority, it can run in the background without issue. The script also exits early when running on battery.

Recommended setup (executable prototype.py)

wallrnd is a more developed product than this, but if you still want to use the prototype it is possible.

Be warned that performance is a lot worse and that this version is far less configurable.

psutil is used to abort the process if CPU usage is already high.


Alternative tools

Online

Scripts

Apps

Examples

As a random generator of wallpaper ought to provide images of consistent quality, the following sample of images is unfiltered*. All were created with a configuration file similar to the one provided under setup/wallrnd.toml.

* To provide a variety of patterns, tilings, and themes, the six were created in succession by altering the configuration file slightly so that only one pattern, tiling, and theme was available. This method guarantees variability without biasing quality. Hence the above sample can be considered representative of the general quality of generated wallpapers.