wpg

Generates the XML file for a changing GNOME background from the image files in the current workign directory

Usage no npm install needed!

<script type="module">
  import wpg from 'https://cdn.skypack.dev/wpg';
</script>

README

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