Gnome3 - Wallpaper and DropBox - a nice mixup!

Oscar Brito

Slideshow your wallpaper with dropbox and perl script

From: https://bbs.archlinux.org/viewtopic.php?pid=933248



#!/usr/bin/perl -w
use strict;
use warnings;
my $searchPath = '~/Dropbox/wallpapers/';   # Set to the directory you want to have searched for photos
my $switchTime = 120; #sec
my @photos = find $searchPath -type f | grep [jJ][pP][eE]*[gG];          
chomp(@photos);
my $photo;
while(1)
{
    $photo = $photos[rand($#photos)];
     gsettings set org.gnome.desktop.background picture-uri "file:///$photo";
    sleep($switchTime);
}

Next "chmod +x"  and set it up in "Startup Applications" in Gnome3.



Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.