Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
I saw the picture but not the link. thanks for the script it works briliantly Jacob Mansfield Programmer On 16 October 2010 17:03, Steve Fisher wrote: > Ha Ha Ha http://darkrule.freewebhostx.com/hello/xmlmaker.php > > If only I had read > fu

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
Ha Ha Ha http://darkrule.freewebhostx.com/hello/xmlmaker.php If only I had read further down the link I originally gave you. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
Instructions: 1. Dump a load of jpegs in a directory, I used /usr/backgrounds/testdir 2. Copy the script into the same directory and make it executable. Edit and change path and name of output xml to suite. 3. Open terminal change directory and run script 4. Drag and drop output xml to background

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Alan Lord (News)
On 16/10/10 16:39, Jacob Mansfield wrote: > you're gonna have to explain a little more than that I'm afraid > Jacob Mansfield > Programmer http://tldp.org/LDP/abs/html/here-docs.html -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
OK script finished tested and working: #!/bin/bash rm background-2.xml echo "" >> background-2.xml echo " " >> background-2.xml echo "2009" >> background-2.xml echo "08" >> background-2.xml echo "04" >> background-2.xml echo "00" >> background-2.xml echo "00" >> background-2.x

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
you're gonna have to explain a little more than that I'm afraid Jacob Mansfield Programmer On 16 October 2010 16:30, Alan Lord (News) wrote: > On 16/10/10 13:52, Steve Fisher wrote: > > #!/bin/bash > > rm background-1.xml > > I think Heredocs would be easier to read & faster here. > > cat > b

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Alan Lord (News)
On 16/10/10 13:52, Steve Fisher wrote: > #!/bin/bash > rm background-1.xml I think Heredocs would be easier to read & faster here. cat > background-1.xml << "EOF" 2009 08 04 00 00 00 EOF Al -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubunt

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
I came up with this, but it has the same problem #!/bin/bash rm background-1.xml echo "" >> background-1.xml echo " " >> background-1.xml echo "2009" >> background-1.xml echo "08" >> background-1.xml echo "04" >> background-1.xml echo "00" >> background-1.xml echo "00" >> bac

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
the script appears to produce a valid xml file but gnome tells me that an image is missing when I try and use it for a background Jacob Mansfield Programmer On 16 October 2010 14:59, Jacob Mansfield wrote: > drapes won't compile, I got quite a lot of errors along the lines of > ./Main.cs(49,63

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
drapes won't compile, I got quite a lot of errors along the lines of ./Main.cs(49,63): error CS0234: The type or namespace name `Program' does not exist in the namespace `Gnome'. Are you missing an assembly reference? I tries a script to generate it before but it didn't work. I'll try your one Jaco

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
God, this was hard work! But I think it runs, needs testing and all the paths are hardcoded and need changing. So I am assembling a directory of jpegs and will report back, but going out (again) for a while. #!/bin/bash rm background-1.xml echo "" >> background-1.xml echo " " >> background-1.xm

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
Thinking out of the box, why not write a script to generate the xml file? I will have a go, but have to nip out for a couple of hours. Steve -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Matthew Macdonald-Wallace
On Sat, 2010-10-16 at 10:38 +0100, Jacob Mansfield wrote: > I have over 500 pictures. entering all of their file names by hand > isn't an option. Hi Jacob, I figure you've got four choices here: 1) Use 'Drapes' as suggested on the website you were linked to 2) Use the form on the website you wer

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
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 wrote: > On 16 October 2010 10:01, Jacob Mansfield wrote: > >> I am attempting to make the desktop background in gnome change >> automatically

Re: [ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Steve Fisher
On 16 October 2010 10:01, Jacob Mansfield 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/f

[ubuntu-uk] gnome desktop background changer

2010-10-16 Thread Jacob Mansfield
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 #