Get or set the desktop wallpaper on Linux
$ npm install --save linux-wallpaper
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'
});
Required
Type: function
Type: string
Path to the current desktop wallpaper image.
Required
Type: string
Path to the image to set as the desktop wallpaper.
See wallpaper
.
MIT © Sindre Sorhus