This package has been deprecated

Author message:

Deprecated in favor of the `wallpaper` module

linux-wallpaper

1.0.1 • Public • Published

linux-wallpaper Build Status

Get or set the desktop wallpaper on Linux

Install

$ npm install --save linux-wallpaper

Usage

var linuxWallpaper = require('linux-wallpaper');

linuxWallpaper.set('unicorn.jpg', function (err) {
	console.log('done');
});

linuxWallpaper.get(function (err, imagePath) {
	console.log(imagePath);
	//=> '/home/sindresorhus/unicorn.jpg'
});

API

.get(callback)

callback(error, imagePath)

Required
Type: function

imagePath

Type: string

Path to the current desktop wallpaper image.

.set(imagePath, [callback])

imagePath

Required
Type: string

Path to the image to set as the desktop wallpaper.

CLI

See wallpaper.

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i linux-wallpaper

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sindresorhus