Go to file
Sindre Sorhus 2c35faaa22 1.3.0 2017-02-02 16:00:52 +07:00
.editorconfig meta tweaks 2016-03-26 16:11:26 +07:00
.gitattributes Meta tweak 2017-02-02 15:59:53 +07:00
.gitignore meta tweaks 2016-03-26 16:11:26 +07:00
build Fix case if the wallpaper is set to change every X minutes (#9) 2016-07-24 19:16:12 +02:00
fixture.jpg add fixtures 2015-10-06 08:27:27 +07:00
fixture2.jpg add fixtures 2015-10-06 08:27:27 +07:00
license init 2015-04-03 13:12:15 +07:00
readme.md Add support for scaling method (#11) 2017-02-02 15:58:24 +07:00
wallpaper.m 1.3.0 2017-02-02 16:00:52 +07:00

readme.md

macos-wallpaper

Get or set the desktop wallpaper on macOS

Should work on >=10.6, but only tested on >=10.9.

Install

Homebrew
$ brew install wallpaper
Manually

Download the binary and put it in /usr/local/bin.

Usage

Set
$ wallpaper unicorn.jpg
Get
$ wallpaper
/Users/sindresorhus/unicorn.jpg
Set scaling method
$ 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

$ ./build
  • wallpaper - Get or set the desktop wallpaper cross-platform (Uses this binary)

License

MIT © Sindre Sorhus