This is via the ubuntu-women mailing list; the request was a way to set Gnome’s wallpaper to the Wikipedia Picture of the Day, using a user-made site that feeds the image every day.
I’m not too sure how Gnome would work (I suspect gconftool -s
would be involved), but with Openbox and feh, it’s a very simple trick.
You could set this up as a script to run, but it should work in your .xinitrc
file as well.
wget http://tools.wikimedia.de/~daniel/potd/potd.php/commons/1600x1200
feh --bg-scale potd-1600x1200.jpg
If I understand it correctly, the file name is always potd-1600x1200.jpg
, so you’ll probably overwrite the file each time it’s wgetted. (There’s a --no-clobber
option for wget, if I recall correctly.) If you see one you want to keep, you should probably copy it to a new file and give it a proper name.
Here is the string needed for gnome. Great tip.
gconftool -t string –set /desktop/gnome/background/picture_filename ~/potd-1600×1200.jpg
Excellent, thanks! I’ll relay that to the mailing list. Cheers! 😀
You might want to test your blog in konqueror – to be honest it looks very broken…
Could you be more specific? I’m kind of at the mercy of WordPress.com here, so I don’t know if I can promise much.
Feh actually supports this out of the box:
feh –bg-scale http://tools.wikimedia.de/~daniel/potd/potd.php/commons/1600×1200
It’ll use wget, unless you use “–builtin”, which will use its builtin http grabber.
iwant yuo say picture botho the barasindent in pacistan
Sorry, I didn’t understand your question. 😐
Pingback: fbterm, meet Wikipedia’s POTD « Motho ke motho ka botho
Edit your crontab to pull this every 12 hours or so… whatever you like 🙂
crontab -e;
* */12 * * * wget http://toolserver.org/~daniel/potd/potd.php/commons/full -O /home/sartan/desktop-background.jpg
Then tell gnome to simply point to this location:
gconftool-2 –type string –set /desktop/gnome/background/picture_filename “$HOME/desktop-background.jpg”
The instructions above will only work once every login.
Gnome will automatically redo your desktop when the file changes.
Enjoy!!
Well that means that you have to have gnome installed, and I don`t see any reason to, when feh is both simpler and lighter than that..