[ubuntu-uk] gnome desktop background changer
Jacob Mansfield
cyberjacob at gmail.com
Sat Oct 16 10:38:41 BST 2010
I have over 500 pictures. entering all of their file names by hand isn't an
option.
Jacob Mansfield
Programmer
On 16 October 2010 10:27, Steve Fisher <xirconuk at gmail.com> wrote:
> On 16 October 2010 10:01, Jacob Mansfield <cyberjacob at gmail.com> wrote:
>
>> I am attempting to make the desktop background in gnome change
>> automatically to a random image from a set folder. I know the command I need
>> is
>>
>> gconftool-2 --type=string -s /desktop/gnome/background/picture_filename
>> /full/path/to/image/file
>>
>> I have worked this into a basic shell script:
>>
>> time=$1
>> # time to wait between changing the background in secs
>> while [ : ]
>> do
>> for filepath in `cat list`
>> # list is a list of all files in the backgrounds directory and is the
>> only other non-image file in the folder
>> do
>> echo $filepath
>> # for debug
>> gconftool-2 --type=string -s /desktop/gnome/background/picture_filename
>> “$filepath”
>> sleep $time
>> done
>> done
>>
>> however allthough this sets the value (I can see it in the xml
>> configuration file with emacs) the background simply goes to the set colour
>> not the image. is there another value I need to get the background as an
>> image? or is there something wrong with my script? all help appreciated.
>> Jacob Mansfield
>> Programmer
>>
>>
>> --
>> ubuntu-uk at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
>> https://wiki.ubuntu.com/UKTeam/
>>
>>
> Jacob
>
> Have a look at:
>
> http://www.itlure.com/2009/11/create-your-own-gnome-background.html
>
> Steve
>
> --
> ubuntu-uk at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20101016/bbca71da/attachment-0001.htm
More information about the ubuntu-uk
mailing list