All Projects → scriptingosx → Desktoppr

scriptingosx / Desktoppr

Licence: apache-2.0
Simple command line tool to set the desktop picture on macOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Desktoppr

Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+1321.26%)
Mutual labels:  terminal, command-line, command-line-tool
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (+171.65%)
Mutual labels:  command-line-tool, terminal, command-line
Quickpkg
wrapper for pkgbuild to quickly build simple packages from an installed app, a dmg or zip archive.
Stars: ✭ 137 (+7.87%)
Mutual labels:  command-line-tool, macadmin, terminal
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-22.83%)
Mutual labels:  command-line-tool, terminal, command-line
Ed
A modern UNIX ed (line editor) clone written in Go
Stars: ✭ 44 (-65.35%)
Mutual labels:  command-line-tool, terminal, command-line
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+3381.89%)
Mutual labels:  command-line-tool, terminal, command-line
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (+128.35%)
Mutual labels:  command-line-tool, terminal, command-line
Jmxterm
Interactive command line JMX client
Stars: ✭ 389 (+206.3%)
Mutual labels:  command-line-tool, terminal, command-line
Google Images Download
Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
Stars: ✭ 7,815 (+6053.54%)
Mutual labels:  command-line-tool, terminal, command-line
Sultan
Sultan: Command and Rule over your Shell
Stars: ✭ 625 (+392.13%)
Mutual labels:  command-line-tool, terminal, command-line
Sampler
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Stars: ✭ 9,203 (+7146.46%)
Mutual labels:  command-line-tool, terminal, command-line
Mocha Chrome
☕️ Run Mocha tests using headless Google Chrome
Stars: ✭ 66 (-48.03%)
Mutual labels:  command-line-tool, terminal, command-line
Typin
Declarative framework for interactive CLI applications
Stars: ✭ 126 (-0.79%)
Mutual labels:  command-line-tool, terminal, command-line
Kure
Secure, private and feature-rich CLI password manager
Stars: ✭ 87 (-31.5%)
Mutual labels:  terminal, command-line
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-29.13%)
Mutual labels:  command-line-tool, command-line
Run
⚡The resource runtime
Stars: ✭ 90 (-29.13%)
Mutual labels:  terminal, command-line
Cli Boot.camp
💻 command-line bootcamp adventure in your browser
Stars: ✭ 88 (-30.71%)
Mutual labels:  terminal, command-line
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-22.83%)
Mutual labels:  command-line-tool, command-line
Dynein
DynamoDB CLI written in Rust.
Stars: ✭ 126 (-0.79%)
Mutual labels:  command-line-tool, command-line
Csv2db
The CSV to database command line loader
Stars: ✭ 102 (-19.69%)
Mutual labels:  command-line-tool, command-line

Here comes the desktoppr!

   

I wrote a simple command line tool which can read and set the desktop picture. Neil Martin had the brilliant idea to call it desktoppr.

You can read the current desktop picture with:

$ desktoppr
/Library/Desktop Pictures/Sierra.jpg

and set the desktop picture with

$ desktoppr "/Library/Desktop Pictures/BoringBlueDesktop.png"

When you have multiple displays, desktoppr will list all desktop pictures:

$ desktoppr
/Library/Desktop Pictures/HotStepper.jpg
/Library/Desktop Pictures/LyricalGangster.jpg
/Library/Desktop Pictures/MrOfficer.jpg

When you pass a file desktoppr will set it as the desktop picture for all screens:

$ desktoppr /Library/Desktop Pictures/NaahNananah.jpg
$ desktoppr
/Library/Desktop Pictures/NaahNananah.jpg
/Library/Desktop Pictures/NaahNananah.jpg
/Library/Desktop Pictures/NaahNananah.jpg

You can also set the desktop for a specific screen: (index starts at zero)

$ desktoppr 0 /Library/Desktop Pictures/HotStepper.jpg
$ desktoppr 1 /Library/Desktop Pictures/LyricalGangster.jpg
$ desktoppr 2 /Library/Desktop Pictures/MrOfficer.jpg

You can get the code for desktoppr on my Github page and an installer here. The installer pkg will install the tool in /usr/local/bin. Alternatively, a brew casks exists, so you could install it using brew cask install desktoppr if you have Homebrew installed.

When you want to run it from a management script it is safest to include the entire path:

/usr/local/bin/desktoppr "/Library/Desktop Pictures/BoringBlueDesktop.png"

Since the desktoppr tool also sets user preferences, you still need to pay attention that it runs as the user. A LaunchAgent or a solution like outset is a good choice to manage this. Alternatively, you can run the command as the current user from a root script.

The tool requires the Swift 5 Runtime support for command line tools when you install it on versions of macOS older than 10.14.4.

I have written a few blog posts that describe different use strategies for setting a desktop picture:

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].