Randomly change wallpaper in a gnome windows manager.
Change your desktop wallpaper randomly.
Date Created:Friday January 19th, 2007 07:19 PM
Date Modified:Saturday August 02nd, 2008 12:36 AM
from os import listdir, system
from random import sample
#get list of files in /home/user/wallpapers/
fileList = listdir("/home/usr/wallpapers/")
#randomly choose one
theChosenOne = sample(fileList, 1)
#set wallpaper
system('gconftool-2 --type string --set /desktop/gnome/background/picture_filename "/home/osx/wallpapers/' + str(theChosenOne[0]) + '"')
#scale wallpaper
system('gconftool-2 --type string --set /desktop/gnome/background/picture_options "zoom"')
Downloads:
Download: desktop.py 476 B
Please login or Click Here to register for downloads
Wallpaper cycle by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
