Permalink
Browse files

Fucking git commit -a.

  • Loading branch information...
1 parent cfdb3b8 commit f5fdfc00344c9fa2d208ed9f2af96944eb6155e5 Alexis Metaireau committed Oct 28, 2010
Showing with 27 additions and 4 deletions.
  1. +24 −2 README.rst
  2. +2 −1 gnome-wallpaper-select
  3. +1 −1 setup.py
View
@@ -1,6 +1,14 @@
-Gnome animated background generator
+Gnome dynamic background generator
###################################
+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.
@@ -35,9 +43,23 @@ To generate the XML file, use `gnome-background-generator`::
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 :)
+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
View
@@ -13,10 +13,11 @@ def choose_background(path):
choice = random.randint(0,len(files)-1)
wall = os.path.join(os.path.abspath(path),files[choice])
os.system('gconftool-2 --set /desktop/gnome/background/picture_filename --type string "%s"' % wall)
+ return wall
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="""Choose an arbitrary file to set on the background""")
parser.add_argument(dest='path', help='path you want to choose the image from')
args = parser.parse_args()
- choose_background(args.path)
+ print 'selected %s' % choose_background(args.path)
View
@@ -6,7 +6,7 @@
setup(
name = "gnome-background-generator",
- version = '1.1',
+ version = '1.1.1',
url = 'http://github.com/ametaireau/gnome-background-generator/',
author = 'Alexis Metaireau',
author_email = 'alexis@notmyidea.org',

0 comments on commit f5fdfc0

Please sign in to comment.