Sets a random Unsplash image as background using Sindresorhus's wallpaper cli
Download main.go
& config.yml
Create a developer account on Unsplash.
Create a new application.
Set the access key of your application as an environment variable, name it ACCESS_KEY_UNSPLASH
.
OPTIONAL: Set the configPath
variable if you want use the executable outside of the working directory.
Execute main.go
You can also build it and run it as an executable. If you want to execute the script on startup, you can follow this guide for Windows.