Skip to content

flopp/RandomWallpapers

Repository files navigation

RandomWallpapers

Random geometric wallpaper generator. The generator has different modes (currently 'circles', 'squares', 'stripes', 'triangles'), which produce different image styles. Visually appealing color palettes are retrieved from https://colourlovers.com.

Requirements

  • libcairo2-dev (sudo apt-get install libcairo2-dev on Ubuntu)

Install

python3 -m venv .env
.env/bin/pip install --upgrade pip
.env/bin/pip install -r requirements.txt
.env/bin/pip install.

Usage

.env/bin/wallpapergen [--width VALUE] [--height VALUE] [--mode MODE] 
                      [--palette PALETTE] FILE

positional arguments:
  FILE            Name of generated PNG image file

optional arguments:
  --width VALUE   Width of generated image
  --height VALUE  Height of generated image
  --mode MODE     Type of wallpaper to generate; 
                  values: 'random', 'circles', 'squares', 'stripes', triangles'; 
                  default: 'random'
  --palette PALETTE  Color palette to use. Numerical palette id from
                  Colourlovers.com, or 'random'; default: 'random'

You may want to run the generator at regular intervals to constantly get new wallpapers. On a unix/linux system, this can achieved via a cronjob or the watch command line tool, e.g.

watch -n 600 ~/RW/.env/bin/wallpapergen --width 1920 --height 1080 --out ~/RW/wallpaper.png

This command assumes that you have cloned the repository to ~/RW, that your screen resolution in 1920x1080, and that you want to generate a wallpaper every 600 seconds. The resulting image ist stored in ~/RW/wallpaper.png which you can set as your desktop wallpaper. Any respectable desktop environment should reload the wallpaper as soon as the file changes.

Examples

Circles mode:

Circles mode

Squares mode:

Squares mode

Stripes mode:

Stripes mode

Triangles mode:

Triangles mode

About

Random geometric wallpaper generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published