module Wallpaper

Overview

This fetches a random image from Unsplash, potentially accepting some search terms, and sets it as the wallpaper for a Ubuntu system.

Defined in:

wallpaper.cr

Constant Summary

BASE_URL = "https://api.unsplash.com/photos/random?client_id=#{UNSPLASH_API_KEY}"
RAND = rand(100)
UNSPLASH_API_KEY = ENV.fetch("UNSPLASH_API_KEY", nil)
VERSION = "0.1.0"