Skip to content

pinpox/wallpaper-generator

Repository files navigation

Wallpaper generator

Generate random wallpapers from mathematical functions using a color palette (like ~/.Xresources).

Add your own generators in wp-gen.lua.

Harmonograph

Lines

Circles

Squares

Batman Equation (because why not?)

Pink Floyd

Development

The project provides a nix-shell with all necesary dependencies and some helpers ready.

# Enter nix-shell
user@host: nix-shell

# Build the project
[nix-shell:~/path] build

There is also a helper function defined, that will allow you to live-preview the generated image. It will run the script on each save and show the image fullscreen.

# Enter nix-shell
user@host: nix-shell

# Preview a generated image
[nix-shell:~/path] preview generator-homograph.png