All Projects → sindresorhus → Wallpaper

sindresorhus / Wallpaper

Licence: mit
Manage the desktop wallpaper

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wallpaper

dotfiles
Config files for i3, polybar, rofi, mpv, Xresources, kitty and some bash-things...
Stars: ✭ 52 (-93.18%)
Mutual labels:  wallpaper
Livewallpaper
A tiny win10 (dynamic) wallpaper changer | 巨应壁纸 | 动态壁纸
Stars: ✭ 274 (-64.09%)
Mutual labels:  wallpaper
Lively
Stars: ✭ 5,721 (+649.8%)
Mutual labels:  wallpaper
Bing-wallpapers
Fetch the Bing wallpaper image of the day
Stars: ✭ 19 (-97.51%)
Mutual labels:  wallpaper
Wallpaper
html5/c++实现桌面动态壁纸 (可hover交互 ) Make wallpaper with html,like Wallpaper Engine in steam
Stars: ✭ 263 (-65.53%)
Mutual labels:  wallpaper
Daily Reddit Wallpaper
Change your wallpaper to the most upvoted image of the day from /r/wallpapers or any other subreddit on system startup
Stars: ✭ 297 (-61.07%)
Mutual labels:  wallpaper
fantascene-dynamic-wallpaper
Managed animated wallpaper based on X11 under Linux
Stars: ✭ 76 (-90.04%)
Mutual labels:  wallpaper
Splash Cli
A simple, command line tool to download Unsplash wallpapers. It’s not intended to be anything particularly fancy — it just works.
Stars: ✭ 432 (-43.38%)
Mutual labels:  wallpaper
Wallpaper
🌼 基于 360壁纸 API 的自采集壁纸网站
Stars: ✭ 262 (-65.66%)
Mutual labels:  wallpaper
Zvirtualdesktop
Windows 10 Virtual Desktop Hotkeys, System Tray Icon, Wallpapers, and Task View replacement
Stars: ✭ 322 (-57.8%)
Mutual labels:  wallpaper
ChangeWallpaper
This script downloads the Bing and Nasa daily wallpaper and uses them to changes the background on the Linux and Windows os periodically.
Stars: ✭ 14 (-98.17%)
Mutual labels:  wallpaper
LiveWallpaper
A tiny win10 (dynamic) wallpaper changer | 巨应壁纸 | 动态壁纸 | Free wallpaper engine
Stars: ✭ 396 (-48.1%)
Mutual labels:  wallpaper
Blear
iOS app that transforms your photos into stunning blurry wallpapers for your device
Stars: ✭ 311 (-59.24%)
Mutual labels:  wallpaper
WallcatWindows
Enjoy a new, beautiful wallpaper, every day.
Stars: ✭ 26 (-96.59%)
Mutual labels:  wallpaper
Wallpaper
透明屏幕
Stars: ✭ 348 (-54.39%)
Mutual labels:  wallpaper
colorfu
Make beautiful but also meaningful wallpapers with words, colors, patterns and images. 🌈
Stars: ✭ 275 (-63.96%)
Mutual labels:  wallpaper
Splashify
Beautiful desktop wallpapers
Stars: ✭ 286 (-62.52%)
Mutual labels:  wallpaper
Macos Wallpaper
Manage the desktop wallpaper on macOS
Stars: ✭ 450 (-41.02%)
Mutual labels:  wallpaper
Pacwall
A live wallpaper that shows the dependency graph and status of installed packages.
Stars: ✭ 412 (-46%)
Mutual labels:  wallpaper
Wallpapers
Collection of wallpapers for elementary OS
Stars: ✭ 317 (-58.45%)
Mutual labels:  wallpaper

wallpaper

Get or set the desktop wallpaper

Works on macOS 10.12+, 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

const wallpaper = require('wallpaper');

(async () => {
	await wallpaper.set('unicorn.jpg');

	await wallpaper.get();
	//=> '/Users/sindresorhus/unicorn.jpg'
})();

API

.get(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 .get() will return a Promise<string[]>.

.set(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.

.screens() (macOS only)

Returns a Promise<string[]> with the available screens.

(async () => {
	await wallpaper.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

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