项目作者: cuth

项目描述 :
Use an image from unsplash.com as your background image from a simple command.
高级语言: JavaScript
项目地址: git://github.com/cuth/unsplash-wallpaper.git
创建时间: 2015-04-28T17:22:29Z
项目社区:https://github.com/cuth/unsplash-wallpaper

开源协议:MIT License

下载


unsplash-wallpaper

Use an image from unsplash.com as your background image from a simple command.

Koala search screenshot

This downloads an image from source.unsplash.com and assigns it as the background image for the active main screen.

Tested on Mac, Windows and Ubuntu. (should work on every Linux).

Install

  1. # NPM
  2. $ npm i -g unsplash-wallpaper
  3. # Yarn
  4. $ yarn global add unsplash-wallpaper

Usage

  1. $ unsplash-wallpaper --help
  2. -r, --random
  3. Get a random image.
  4. $ unsplash-wallpaper --random
  5. -a, --daily
  6. Get a fixed daily image.
  7. $ unsplash-wallpaper --user erondu --daily
  8. -e, --weekly
  9. Get a fixed weekly image.
  10. $ unsplash-wallpaper --search water --weekly
  11. -f, --featured
  12. Limit the results to the curated collections.
  13. $ unsplash-wallpaper -f --search montreal
  14. -w, --width {Number}
  15. Set the width of desired image.
  16. $ unsplash-wallpaper --width 2880 --save-config
  17. -h, --height {Number}
  18. Set the height of desired image.
  19. $ unsplash-wallpaper --width 2880 --height 1800 --save-config
  20. -d, --dir {String}
  21. Download the image to a specific directory.
  22. "." uses the current working directory.
  23. "./" stores the current working directory even when it changes.
  24. $ unsplash-wallpaper --dir "/Users/Shared
  25. $ unsplash-wallpaper --dir "C:UsersPublic
  26. $ unsplash-wallpaper -d .
  27. -s, --save-config
  28. Saves any width, height or dir value in a config file.
  29. $ unsplash-wallpaper -s --width 1600 --height 1200
  30. Leave the values blank to reset width and height:
  31. $ unsplash-wallpaper -whs
  32. -p, --photo {PHOTO ID}
  33. Get a specific image by the photo ID.
  34. $ unsplash-wallpaper -p WLUHO9A_xik
  35. $ unsplash-wallpaper --photo="-oWyJoSqBRM"
  36. -c, --category {CATEGORY NAME}
  37. Get a photo in a category.
  38. $ unsplash-wallpaper --category nature
  39. -u, --user {USERNAME}
  40. Get a photo from a specific user.
  41. $ unsplash-wallpaper -u erondu
  42. -l, --likes {USERNAME}
  43. Get a photo liked by a user.
  44. $ unsplash-wallpaper --likes jackie
  45. -o, --collection {COLLECTION ID}
  46. Get a photo apart of a specific collection.
  47. $ unsplash-wallpaper --collection 190727
  48. -q, --search {KEYWORD,KEYWORD}
  49. Get a photo from a search query.
  50. $ unsplash-wallpaper -q nature,water
  51. $ unsplash-wallpaper -q="water falls"
  52. -v, --version
  53. --help

Thanks

This program wouldn’t be possible without