This experimental project downloads photo from unsplash and set wallpaper for your Mac, it’s mainly inspired by and mimics Unsplash Wallpaper with some minor differences:
- Download photo to
~/Pictures/Wallpapers/
other than~/Download/
. - Auto open download photo.
Set wallpaper only for currrent desktop.
Unsplash Wallpaper introduced the same feature atVersion 1.1
on02 June 2018
.
You can download the zip file here, unzip and run it.
Clone this project, open Wallpaper.xcodeproj
with Xcode and press ⌘+R
.
It’ll just run, no third party libs, no Cocoapods
or Carthage
configurations,
friendly for beginners.
It’s originally written with Swift4.1
, built with Xcode 9.4
, deployment targeted at
macOS 10.11
, tested with macOS High Sierra (10.13.5
). If you run into any trouble,
please file an issue.
At present, wallpaper
is a demo app which is limitd to 50 requests
per hour to
unsplash regulation, so it may fail when loading photos. For better user experience,
I recommand you to apply for your own Access Key on Unsplash, replace current
CLIENT_ID
in WallpaperManager.swift
and rebuild this project.
- [ ] apply for unsplash production permission
- [ ] install from Homebrew
- [ ] preferences page
- [ ] auto change wallpaper periodically
- [ ] launch on system startup
The Unsplash Wallpaper is really awesome, but it can only set wallpaper for all desktops (version 1.1 can set wallpaper separately), this’s inconvenient and gives me the idea to write this demo.
Thanks unsplash and all creators of those breathtaking photos.
The camera icon and gear icon download from Font awesome, they’re licensed under the CC By 4.0 License.
Any using, try to running, pull request, comment, suggestion, fork or download of this project is appreciated.
MIT license, see LICENSE.