# bg-pasticcio — configuration. # Edit freely; changes to BG_ENABLED and BG_INTERVAL_MINUTES are picked up # without a restart. # Whether the plugin may change your background at all. It ships off: nothing # is touched until you turn this on, from the panel in the bar or with # `bg-pasticcio enable`. Turning it off again puts your original background # back, if it is still on disk. BG_ENABLED="0" # Endpoint returning JSON shaped like {"url": "https://.../image.jpg"}, and # optionally a title, creator and licence for it. # Leave empty to rotate only the images you kept. BG_ENDPOINT="" # How often to change the background, in minutes. BG_INTERVAL_MINUTES=60 # Per-request network timeout, in seconds. BG_TIMEOUT_SECONDS=20 # Attempts per network call before giving up and showing a kept image instead. BG_MAX_RETRIES=4 # Exponential backoff base: waits BASE, BASE*2, BASE*4 ... between attempts. BG_RETRY_BASE_SECONDS=2 # How many times to ask the endpoint again when it answers with an image you # have already disliked. An endpoint that caches its answer will keep handing # back the same one, so this gives up quickly and shows a kept image instead. BG_BLOCKED_RETRIES=3