wallpaper alternatives and similar modules
Based on the "Command Line Apps" category.
Alternatively, view wallpaper alternatives based on common mentions on social networks and blogs.
-
Standard
🌟 JavaScript Style Guide, with linter & automatic code fixer -
ignite
Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more! -
Live Server
A simple development http server with live reload capability. -
speed-test
Test your internet connection speed and ping using speedtest.net from the CLI -
rtail
rtail(1) - Terminal output to the browser in seconds, using UNIX pipes. -
David
:eyeglasses: Node.js module that tells you when your package npm dependencies are out of date. -
Whatspup
:white_square_button: WhatsApp chat from commandline/console/cli using GoogleChrome puppeteer -
diff2html-cli
Pretty diff to html javascript cli (diff2html-cli) -
pjs
Pipeable javascript. Quickly filter, map, and reduce from the terminal -
kill-tabs
Kill all Chrome tabs to improve performance, decrease battery usage, and save memory -
tty-table
Terminal table for Windows, Linux, and MacOS. Written in nodejs. Also works in browser console. Word wrap, padding, alignment, colors, Asian character support, per-column callbacks, and you can pass rows as objects or arrays. Backwards compatible with Automattic/cli-table. -
normit
Translations with speech synthesis in your terminal as a node package -
npm-name
Check whether a package or organization name is available on npm
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of wallpaper or a related project?
README
wallpaper
Get or set the desktop wallpaper
Works on macOS 10.14.4+, Linux, and Windows 10+.
Maintainer needed for the Linux part of the code. No new Linux-related changes will be accepted until someone with good Linux knowledge volunteers.
Install
npm install wallpaper
Usage
import {getWallpaper, setWallpaper} from 'wallpaper';
await setWallpaper('unicorn.jpg');
await getWallpaper();
//=> '/Users/sindresorhus/unicorn.jpg'
API
getWallpaper(options?)
Returns a Promise<string>
with the path of the current desktop wallpaper.
options
Type: object
screen (macOS only)
Type: string | number
\
Values: 'all'
, 'main'
, or the index of a screen from .screens()
\
Default: 'main'
The screen to get the wallpaper from.
If you set 'all'
then getWallpaper()
will return a Promise<string[]>
.
setWallpaper(imagePath, options?)
Returns a Promise
.
imagePath
Type: string
The path to the image to set as the desktop wallpaper.
options
Type: object
screen (macOS only)
Type: string | number
\
Values: 'all'
, 'main'
, or the index of a screen from .screens()
Default: 'all'
The screen to set the wallpaper on.
On Linux and Windows it's hard-coded to 'main'
.
scale (macOS only)
Type: string
\
Values: 'auto' | 'fill' | 'fit' | 'stretch' | 'center'
\
Default: 'auto'
Scaling method.
setSolidColorWallpaper(color, options?) (macOS only)
Returns a Promise
.
color
Type: string
The color to set as a RGB Hex value. For example, 000000
for black.
options
Type: object
screen
Type: string | number
\
Values: 'all'
, 'main'
, or the index of a screen from .screens()
Default: 'all'
The screen to set the wallpaper on.
import {setSolidColorWallpaper} from 'wallpaper';
await setSolidColorWallpaper('000000');
screens() (macOS only)
Returns a Promise<string[]>
with the available screens.
import {screens} from 'wallpaper';
await screens();
//=> ['Color LCD']
FAQ
How can I set a website as a static wallpaper?
If you only need a static snapshot of the website, you can use capture-website
and then pass the result to this package. You can make it semi-dynamic, by capturing the website snapshot every 10 seconds, for example.
How can I set a website, video, or WebGL as a dynamic wallpaper?
You cannot use this package to set a dynamic wallpaper.
On macOS, check out Plash, which lets you set any website as your wallpaper. The website could contain a fullscreen video, WebGL, slideshow, animated, etc.
You can also do this with Electron on macOS and Linux by using new BrowserWindow({type: 'desktop'})
.
On Windows, you can use Wallpaper Engine. It's available on Steam, HumbleBundle, and Green Man Gaming for around 4 USD.
Related
- wallpaper-cli - CLI for this module
- macos-wallpaper - macOS binary used in this module
- win-wallpaper - Windows binary used in this module
- trash - Move files and directories to the trash