☰ Menu
Home›Command-line Tools›wallpaper
CLI Open source 27 installs/mo

wallpaper for Mac

wallpaper

macos-wallpaper Manage the desktop wallpaper on macOS

wallpaper — overview

macos-wallpaper Manage the desktop wallpaper on macOS

This is both a command-line app and a Swift package.

It correctly handles getting the active wallpaper even when the wallpaper is set to a directory.

CLI

Requires macOS 10.14.4 or later.

Install

Homebrew

Manually

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

Usage

By default, it sets and gets the wallpaper for all screens. Use the --screen flag to change this. [!NOTE] macOS still offers a Tile option in System Settings, but it has no API. The undocumented NSWorkspace placement key silently ignores tile values, and the old desktoppicture.db method no longer works on macOS 26 and later. --scale therefore does not support tile. Set it manually in System Settings if you need it.

Set

Set solid color

Get

API

Building this requires the latest Xcode and macOS version. The package supports macOS 10.14.4 or later.

Install

Add the following to Package.swift:

Usage

See the source for more. [!NOTE] In sandboxed apps, the library gracefully handles database access restrictions and may return directory paths instead of specific image files when getting current wallpapers.

Dev

Run

Build

Related wallpaper - Get or set the desktop wallpaper cross-platform (Uses this binary) macos-trash - Move files and directories to the trash do-not-disturb - Control the macOS Do Not Disturb feature More…

Details

管理桌面壁纸

How to install wallpaper

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-04-19; current version v2.3.4, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v2.3.42026-04-19Stable1.5 MBDownload——
v2.3.32025-10-02Stable————
v2.3.22024-09-16Stable1.4 MB———
v2.3.12022-01-23Stable1.4 MB———
v2.3.02022-01-10Stable1.4 MB———
v2.2.02021-09-16Stable704 KB———
v2.1.02020-05-04Stable531 KB———
v2.0.02018-09-28Stable3.5 MB———
1.3.02017-02-02Stable4 KB———
1.2.02016-07-24Stable3 KB———

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Intel · macOS 14 Sonoma

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
wallpaperv2.3.4MITCLI27
gowallv0.2.4MITCLI33
gnome-papers51.1GPL-2.0-or-laterCLI37
gossipv0.14.0MITCLI16

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…