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
- Host: GitHub
- URL: https://github.com/flopp/randomwallpapers
- Owner: flopp
- License: gpl-3.0
- Created: 2015-01-12T20:39:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T22:05:47.000Z (over 2 years ago)
- Last Synced: 2025-03-24T12:08:29.631Z (about 1 year ago)
- Language: Python
- Size: 362 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

### Squares mode:

### Stripes mode:

### Triangles mode:
