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
.
Usage: wallpaper <command> [options]
Manage your desktop background image.
Commands:
set Set wallpaper image. Usage set <path>
get Get current wallpaper image path.
help Prints this help information
version Prints the current version of this app
$ wallpaper set unicorn.jpg
You can specify the scaling method with one of these scale options: fill
, fit
, stretch
, or center
.
If you don't specify a scaling method, it will use your current setting.
-s, -scale <option>
Set image scaling option
$ wallpaper set unicorn.jpg -scale fill
$ wallpaper get
/Users/sindresorhus/unicorn.jpg
swift build
swift run wallpaper
swift build -c release
.build/<build_target>/release/wallpaper
- wallpaper - Get or set the desktop wallpaper cross-platform (Uses this binary)
MIT © Sindre Sorhus