Generates the XML file for cycling gnome desktop wallpapers.
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.LICENSE.swp
.npmignore
Cakefile
LICENSE
README.md
package.json

README.md

WPG

WPG: The "Wallpaper Generator"

Or more accurately, the Gnome Desktop Cycling Wallpaper XML File Generator Kind of a mouthful, eh? That's why it's "wpg" and not "gdcwxfg"

Installation

npm install -g wpg

Command Line Usage

wpg in a folder that has at least two images.

This will generate an XML file that has the same name as the current folder. You can then open System -> Preferences -> Appearance -> Background and select the XML file.

That was easy.

Programmatic Usage

To use programmatically, you need to install locally.

npm install wpg

wpg = require("wpg")
outXML = wpg.generateXMLFile()

generateXMLFile() has an optional argument which is the number of seconds that each image is displayed. The default is 1800, or 30 minutes.

Written in coffeescript for the lulz