Get or set the desktop wallpaper on macOS
Should work on >=10.6, but only tested on >=10.9.
$ brew install wallpaper
Download the binary and put it in /usr/local/bin
.
$ wallpaper unicorn.jpg
$ wallpaper
/Users/sindresorhus/unicorn.jpg
$ wallpaper unicorn.jpg fill
You can specify the scaling method as the second parameter, which can be either fill
, fit
, stretch
, or center
.
If you don't specify a scaling method, it will use your current setting.
$ ./build
- wallpaper - Get or set the desktop wallpaper cross-platform (Uses this binary)
MIT © Sindre Sorhus