Skip to content

A simple Go app for setting random wallpaper from Unsplash

Notifications You must be signed in to change notification settings

rovnyart/diversity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diversity - Windows wallpaper changer written on Go

Unsplash API token

First of all you need to get an API token from Unsplash. Go to https://unsplash.com/developers, create an account, create an app and get API Key.

Installation

You can download pre-built Windows amd64 binary from the releases section.

Alternatively, you can build an app on your own:

go get github.com/rovnyart/diversity

$env: GOARCH='windows'
$env: GOTARGET='amd64'

go build github/rovnyart/diversity -ldflags -H=windowsgui

This will produce diversity.exe executable. In order to run it you need to place config.yaml file in the same directory. See Config section for more details.

Config

Config file has a very simple structure:

---
apikey: your-api-token-here # Your Unsplash API token
scope: nature # Picture search query
schedule: 2h # Automatic wallpaper change schedule

Usage

Just run app =) Application has an system tray icon with some sort of menu, where you can change current wallpaper or quit.