sindresorhus / Macos Wallpaper
Licence: mit
Manage the desktop wallpaper on macOS
Stars: ✭ 450
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Macos Wallpaper
wallpaper-cli
Get or set the desktop wallpaper
Stars: ✭ 151 (-66.44%)
Mutual labels: wallpaper, cli-app
Cobra
A Commander for modern Go CLI interactions
Stars: ✭ 24,437 (+5330.44%)
Mutual labels: cli-app, cli
win-wallpaper
Manage the desktop wallpaper on Windows
Stars: ✭ 62 (-86.22%)
Mutual labels: wallpaper, cli-app
Tldr
Golang command line client for tldr https://github.com/tldr-pages/tldr
Stars: ✭ 210 (-53.33%)
Mutual labels: cli-app, cli
Stargazed
📋 Creating your own Awesome List of GitHub stars!
Stars: ✭ 339 (-24.67%)
Mutual labels: cli-app, cli
Argparse
Argparse for golang. Just because `flag` sucks
Stars: ✭ 294 (-34.67%)
Mutual labels: cli-app, cli
Gcli
🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应用,工具库,运行CLI命令,支持命令行色彩,用户交互,进度显示,数据格式化显示,生成bash/zsh命令补全脚本
Stars: ✭ 188 (-58.22%)
Mutual labels: cli-app, cli
Create Dmg
Create a good-looking DMG for your macOS app in seconds
Stars: ✭ 3,494 (+676.44%)
Mutual labels: cli-app, cli
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+628.67%)
Mutual labels: cli-app, cli
Sclack
The best CLI client for Slack, because everything is terrible!
Stars: ✭ 2,363 (+425.11%)
Mutual labels: cli-app, cli
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+4224%)
Mutual labels: cli-app, cli
Ahoy
Create self-documenting cli programs from YAML files. Easily wrap bash, grunt, npm, docker, (anything) to standardize your processes and make the lives of the people working on your project better.
Stars: ✭ 201 (-55.33%)
Mutual labels: cli-app, cli
Tty
Toolkit for developing sleek command line apps.
Stars: ✭ 2,329 (+417.56%)
Mutual labels: cli-app, cli
Cli
✨ A powerful CLI for the Create Go App project. Create a new production-ready project with backend, frontend and deploy automation by running one CLI command!
Stars: ✭ 292 (-35.11%)
Mutual labels: cli-app, cli
Ohshitgit
⁉️Oh shit! A cli tool to help you unfuck your git mistakes
Stars: ✭ 135 (-70%)
Mutual labels: cli-app, cli
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (-16.67%)
Mutual labels: cli-app, cli
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.
Requires macOS 10.12 or later.
CLI
Install
Homebrew
$ brew install wallpaper
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.
$ wallpaper help
Usage: wallpaper <command> [options]
Manage the desktop wallpaper
Commands:
set Set wallpaper image
set-solid-color Set solid color wallpaper background
get Get current wallpaper image
screens List screens
help Prints help information
version Prints the current version of this app
$ wallpaper get --help
Usage: wallpaper get [options]
Get current wallpaper image
Options:
--screen <value> Values: all, main, <index> [Default: all]
-h, --help Show help information
$ wallpaper set --help
Usage: wallpaper set <path> [options]
Set wallpaper image
Options:
--scale <value> Values: auto, fill, fit, stretch, center [Default: auto]
--screen <value> Values: all, main, <index> [Default: all]
--fill-color <value> Format: Hex color <RRGGBB> [Default: nil]
-h, --help Show help information
$ wallpaper set-solid-color --help
Usage: wallpaper set-solid-color <color> [options]
Set solid color wallpaper background
Options:
--screen <value> Values: all, main, <index> [Default: all]
-h, --help Show help information
Set
$ wallpaper set unicorn.jpg
Set solid color
$ wallpaper set-solid-color 0000ff
Get
$ wallpaper get
/Users/sindresorhus/unicorn.jpg
API
Install
Add the following to Package.swift
:
.package(url: "https://github.com/sindresorhus/macos-wallpaper", from: "2.1.0")
Usage
import Wallpaper
let imageURL = URL(fileURLWithPath: "<path>", isDirectory: false)
let solidColor = NSColor.blue
try! Wallpaper.set(imageURL, screen: .main, scale: .fill, fillColor: NSColor.blue)
try! Wallpaper.set(solidColor, screen: .main)
print(try! Wallpaper.get(screen: .main))
See the source for more.
Dev
Run
swift run wallpaper
Build
swift build --configuration=release
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…
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].