Skip to main content

A simple utility command line to generate a XML file for dynamic gnome wallpapers

Project description

This package propose two ways to dynamically change your desktop automatically. One is by generating a XML file, that can be used by the gnome system, and the other one is a little script you can run to randomly select a picture from a path.

Using XML files

Gnome background can use XML files to make an animated background. This little script allows you to generate automaticaly your own XML background changer file, easily, using the command line.

To generate the XML file, use gnome-background-generator:

usage: gnome-background-generator [-h] [-p PATH] [-o OUTPUT]
                              [-t TRANSITION_TIME] [-d DISPLAY_TIME] [-s]
                              [-b]

A simple command line tool to generate an XML file to use for gnome
wallpapers, to have dynamic walls

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  Path to look for the pictures. If no output is
                        specified, will be used too for outputing the dynamic-
                        wallpaper.xml file. Default value is the current
                        directory (.)
  -o OUTPUT, --output OUTPUT
                        Output filename. If no filename is specified, a
                        dynamic-wallpaper.xml file will be generated in the
                        path containing the pictures. You can also use "-" to
                        display the xml in the stdout.
  -t TRANSITION_TIME, --transition-time TRANSITION_TIME
                        Time (in seconds) transitions must last (default value
                        is 2 seconds)
  -d DISPLAY_TIME, --display-time DISPLAY_TIME
                        Time (in seconds) a picture must be displayed. Default
                        value is 900 (15mn)
  -s, --set-background  '''try to set the background using gnome-appearance-
                        properties
  -b, --debug

Changing your desktop randomly

There is also another command you can use to change your background to a random file from a known directory:

$ gnome-wallpaper-select /path/to/walls

This second one is useful if combined with a cronjob; Unfortunately, it’s sometimes a hard process because crontabs use dbus, and this conflicts with the use of gconftool-2.

Here is a simple tutorial on how to make it work:

$ wget http://github.com/ametaireau/gnome-background-generator/raw/master/xdbus -O ~/.Xdbus
$ crontab -e

And then add

*/4 * * * * . ~/.Xdbus; /usr/local/bin/gnome-wallpaper-select ~/Images/walls

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gnome-background-generator-1.1.2.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file gnome-background-generator-1.1.2.tar.gz.

File metadata

File hashes

Hashes for gnome-background-generator-1.1.2.tar.gz
Algorithm Hash digest
SHA256 cc6d95bbd7410e308108467c08a7f471de6cdfe02e06e0de0b53f354fe612f6b
MD5 e25a63db17b082ce1bb79e7a597f73df
BLAKE2b-256 825742f78db48ea79f423e2d09cb05fb465f5d12d6126705909deb49ac846377

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page