0.0.2 • Published 12 years ago

wpg v0.0.2

Weekly downloads
9
License
-
Repository
github
Last release
12 years ago

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