Using Wikipedia’s Picture of the Day as wallpaper

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.

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.

About these ads

10 Responses to “Using Wikipedia’s Picture of the Day as wallpaper”

  1. 1 Will 2007/02/26 at 12:55 PM

    Here is the string needed for gnome. Great tip.

    gconftool -t string –set /desktop/gnome/background/picture_filename ~/potd-1600×1200.jpg

  2. 2 K.Mandla 2007/02/26 at 1:28 PM

    Excellent, thanks! I’ll relay that to the mailing list. Cheers! :D

  3. 3 Whoever 2007/02/26 at 7:09 PM

    You might want to test your blog in konqueror – to be honest it looks very broken… :/

  4. 4 K.Mandla 2007/02/26 at 8:35 PM

    Could you be more specific? I’m kind of at the mercy of here, so I don’t know if I can promise much.

  5. 5 mgsloan 2007/08/17 at 7:30 PM

    Feh actually supports this out of the box:

    feh –bg-scale×1200

    It’ll use wget, unless you use “–builtin”, which will use its builtin http grabber.

  6. 6 mohammed 2008/01/05 at 12:40 AM

    iwant yuo say picture botho the barasindent in pacistan

  7. 7 K.Mandla 2008/01/05 at 8:05 AM

    Sorry, I didn’t understand your question. :|

  8. 8 JP Senior 2010/06/09 at 2:18 AM

    Edit your crontab to pull this every 12 hours or so… whatever you like :)
    crontab -e;

    * */12 * * * wget -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.

    • 9 gullars 2010/06/09 at 10:51 AM

      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..

  1. 1 fbterm, meet Wikipedia’s POTD « Motho ke motho ka botho Trackback on 2010/05/30 at 8:31 PM

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Visit the Wiki!

Some recent desktops

May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF

May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games

Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers


This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,962,940 hits



Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: