adamdehaven Posted April 8, 2016 Share Posted April 8, 2016 (edited) An Alfred workflow that allows users to replace their desktop background(s) with photos from the popular Unsplash.com. Download Workflow View on GitHub More info on adamdehaven.com Install the Wallpapers-from-Unsplash Alfred workflow simply by double-clicking the workflow file.Once installed, the Alfred workflow allows for 10 different keyword methods, along with 3 configuration methods:KEYWORDSunsplash: Replaces the desktop background(s) with a random photo from Unsplash.featured: Replaces the desktop background(s) with a random featured photo from Unsplash.search: with argument: [comma-separated string of keywords] Replaces the desktop background(s) with a random photo matching the search keyword(s) from Unsplash. Separate keywords with commas and NO spaces. Example: search sunrise,city collection: with argument: [collection id] Replaces the desktop background(s) with a random photo from the specified collection from Unsplash. Example: collection 165921 username: with argument [username string] Replaces the desktop background(s) with a random photo from the specified user’s photos from Unsplash. Example: username stvcrtr fetch: with argument [photo id] Replaces the desktop background(s) with a specified photo from Unsplash. Example: fetch KqVHRmHVwwM desktop: with argument [desktop number] Replaces the desktop background specified by the integer with a random photo from Unsplash. Example: desktop 2 save: with argument [desktop number] Saves the current desktop background specified by the integer to the Wallpapers-from-Unsplash/images/saved-wallpapers/ directory. Example: save 2 saved: with argument [full or partial image name] Replaces the current desktop background(s) with a specific saved photo from your Wallpapers-from-Unsplash/images/saved-wallpapers/ directory. You may pass a full or partial image name. Example: saved TZCehSn-T-o load: Replaces the current desktop background(s) with a random saved photo from Wallpapers-from-Unsplash/images/saved-wallpapers/CONFIGURATION KEYWORDSsetpath: with argument [Wallpapers-from-Unsplash] Sets the path of the Wallpapers-from-Unsplash/ directory. Type the keyword setpath followed by Wallpapers-from-Unsplashand then select the correct folder in Alfred. Required Usage: setpath Wallpapers-from-Unsplash setdesktopwidth: with argument [integer] Sets the desktop width at which to download photos. Default is 2560. Example: setdesktopwidth 2560 setdesktopheight: with argument [integer]Sets the desktop height at which to download photos. Default is 1440.Example: setdesktopheight 1440 SUPPORTDo you have questions? Would you like to contribute? Something else? Feel free to fork the project, open an issue, or submit a pull request.Not into looking at code? No worries. Reach out on Alfred Forum on Twitter @adamdehaven. More information is also available on my website. Edited September 6, 2016 by adamdehaven Link to comment
jkblackman77 Posted April 16, 2016 Share Posted April 16, 2016 really love this workflow any chance you can allow ability to favourite a particular collection so that i can choose a random picture from that collection without having to type in the id number? cheers Link to comment
adamdehaven Posted April 16, 2016 Author Share Posted April 16, 2016 Unfortunately the Unsplash API currently only allows users to favorite photos, not entire collections. While liking/favoriting isn't currently a part of this workflow (that would require authenticating you, the user, into your Unsplash account, if you have one) I'll put it on a list of user requests. Thanks for the feedback! Link to comment
adamdehaven Posted May 20, 2016 Author Share Posted May 20, 2016 Now updated for Alfred 3. Download the newest build here: Wallpapers-from-Unsplash Link to comment
PLANT Posted June 5, 2016 Share Posted June 5, 2016 Hello! Thank you for work. Unfortunately the workflow doesn't work for me on the latest alfred version. I've tried all the solutions listed at your website-but no luck-the're only a change of wallpaper from my standard local folder and sometimes an error message "There appears to be an issue with your network connection. Your connection is too slow, or more likely, your internet connection is down", which can't be the case-not using proxy or anything like that. Would you be so kind to assist me here? Link to comment
adamdehaven Posted June 5, 2016 Author Share Posted June 5, 2016 Sure thing. First, which version of Alfred are you running? To use the latest version of the workflow, you'll need to install the Alfred 3 beta on your Mac. Link to comment
adamdehaven Posted June 5, 2016 Author Share Posted June 5, 2016 Can you delete the existing workflow as well as the Wallpapers-from-Unsplash directory on your Mac (back up the saved-wallpapers directory if you'd like to keep any saved images), empty the trash, then download a fresh copy from https://github.com/adamdehaven/Wallpapers-from-Unsplash Follow the install instructions on the GitHub page, and let me know? Link to comment
PLANT Posted June 5, 2016 Share Posted June 5, 2016 Found out what caused the problem-in os x settings-wallpapers-unclicked Change wallpaper-now the workflow works. Thanks) Link to comment
adamdehaven Posted June 5, 2016 Author Share Posted June 5, 2016 Can you explain a little further? I'm not sure I understand Link to comment
PLANT Posted June 5, 2016 Share Posted June 5, 2016 The workflow refused to work after following all the steps from your guidelines-it just changed the wallpaper from the standard apple folder. But then I went to Apple→System Preferences-->Desktop & Screen Saver icon and unchecked Change picture(that has been enabled). After that all worked. Link to comment
nikivi Posted June 5, 2016 Share Posted June 5, 2016 This is really amazing. Thank you a lot for sharing this. ♥ adamdehaven 1 Link to comment
adamdehaven Posted June 7, 2016 Author Share Posted June 7, 2016 June 7, 2016 update: Just updated the workflow with a new 'saved' keyword that allows you to load a SPECIFIC image from your 'saved-wallpapers' folder. Enjoy thec13 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now