An open API service indexing awesome lists of open source software.

https://github.com/flopp/randomwallpapers

Random geometric wallpaper generator
https://github.com/flopp/randomwallpapers

Last synced: about 1 year ago
JSON representation

Random geometric wallpaper generator

Awesome Lists containing this project

README

          

# 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](https://raw.githubusercontent.com/flopp/RandomWallpapers/master/examples/circles.png)

### Squares mode:
![Squares mode](https://raw.githubusercontent.com/flopp/RandomWallpapers/master/examples/squares.png)

### Stripes mode:
![Stripes mode](https://raw.githubusercontent.com/flopp/RandomWallpapers/master/examples/stripes.png)

### Triangles mode:
![Triangles mode](https://raw.githubusercontent.com/flopp/RandomWallpapers/master/examples/triangles.png)