Skip to content

Online Wallpapers

Pyprland can fetch wallpapers from free online sources without requiring API keys. When online_ratio is set, each wallpaper change has a chance to fetch a new image from the configured backends. If a fetch fails, it falls back to local images.

Downloaded images are stored in the online_folder subfolder and become part of your local collection for future use.

NOTE

Online fetching requires online_ratio > 0. If online_backends is empty, online fetching is disabled.

Configuration

Loading configuration...

online_ratio

Probability (0.0 to 1.0) of fetching a wallpaper from online sources instead of local files. Set to 0.0 to disable online fetching or 1.0 to always fetch online.

toml
online_ratio = 0.3  # 30% chance of fetching online

online_backends

List of online backends to use. Defaults to all available backends. Set to an empty list to disable online fetching. See Available Backends for details.

toml
online_backends = ["unsplash", "wallhaven"]  # Use only these two

online_keywords

Keywords to filter online wallpaper searches. Not all backends support keywords.

toml
online_keywords = ["nature", "landscape", "mountains"]

online_folder

Subfolder name within path where downloaded online images are stored. These images persist and become part of your local collection.

toml
online_folder = "online"  # Stores in {path}/online/

Cache Management

Loading configuration...

cache_days

Days to keep cached images before automatic cleanup. Set to 0 to keep images forever.

toml
cache_days = 30  # Remove cached images older than 30 days

cache_max_mb

Maximum cache size in megabytes. When exceeded, oldest files are removed first. Set to 0 for unlimited.

toml
cache_max_mb = 500  # Limit cache to 500 MB

cache_max_images

Maximum number of cached images. When exceeded, oldest files are removed first. Set to 0 for unlimited.

toml
cache_max_images = 100  # Keep at most 100 cached images

Available Backends

BackendKeywordsDescription
unsplashUnsplash Source - high quality photos
wallhavenWallhaven - curated wallpapers
redditReddit - keywords map to wallpaper subreddits
picsumPicsum Photos - random images
bingBing Daily Wallpaper

Example Configuration

toml
[wallpapers]
path = "~/Pictures/wallpapers/"
online_ratio = 0.2  # 20% chance to fetch online
online_backends = ["unsplash", "wallhaven"]
online_keywords = ["nature", "minimal"]