Linux wallpaper changer

First of all let me say I’m not a fan of wallpapers I’m more a “black background guy”.

But I have been hearing a friend complain about needing a program with this simple spec.

“take in a dir, randomly look for a wallpaper there and set it.”

I’m impress that gnome doesn’t has this so simple functionality same with fluxbox (although you can use feh, but I have yet to learn how). On the other hand KDE seems to have one that’s very nice it even has wallpapers on each desktop but it’s KDE.
Then they are lots of programs with a huge ammount of “functionality” like gradients and solid backgrounds and a bunch of stuff and yet they forgot something so simple as a random chooser.

Anyway I was about to fire up my editor and code something but i decided to google around and I found many:

all the relevant ones are in this thread, ironically they are all implementations of the same program in different languages.

The one that is a bit more complex is the C code which implements it’s own counter, the shell one, perl and python are just something that reads all files in dir and randomly gets one after that they all call gconftool-2 with the correct options to set the wallpaper; after that they all say set a cron job.

The one written in C goes hardcode loading a gconf instance and setting the property there ( /desktop/gnome/background/picture_filename if someone is interested.) after that it created a mainloop and sleeps for X seconds, oh did I forget it needs to be compile and depends on 2 external libraries? good luck ubuntu users getting that build.
Anyway I could say which one I think it’s the best but as I said I don’t have any wallpapers to try them….

If only a friend of mine will lend me his huge list of wallpapers, which I’ll love to have but he refuses until I stop caling it “your huge pile of crap”
side note, check out this “true story” about openbox wallpapers why executable code is not a good idea :)

Come on click it it’s just one paragraph.

7 comments ↓

#1 Green on 10.27.06 at 9:49 pm

Thank you for the help my friend. May be it is because this code is incompatible with gnome 2.16, maybe i’m not compiling using it right, or maybe i’m just plain stupid. I can’t get any of them to work.

In any case, I thank you again for the gesture.

#2 mae on 10.29.06 at 11:53 pm

from the 4 programs you took the most complicated? use the shell and cron that will NEVER break, even the perl one shouldn’t since the last perl version was ages ago, or just run the python code at least this way you will know some of all the code your running on this beatiful language

#3 monk on 10.31.06 at 10:12 am

The last Perl version was actually a few months ago! Now Perl6 has ways to go, but don’t get confused Perl 5.8.* is current.

#4 TBD » Blog Archive » show_stock buttons in pygtk on 11.01.06 at 1:33 am

[…] TBD Somewhere to write when I want to say something. « Linux wallpaper changer […]

#5 TBD » wallpaper thingy 0.1 on 11.16.06 at 12:38 am

[…] Why? Ok so after almost killing myself over bonobo I got this stable. if you read my previous post on this I didn’t found anything I really liked. While developing this I came across 2 very nice programs, although I have too say they both suffer from the “way too many features problem”, to be fair wp-tray and desktop drapes […]

#6 Erik on 03.10.07 at 6:33 am

Hi,

I’ve made an implementation in shell specifically for KDE if anyone’s interested. It can be found here:

http://ejtaal.net/scripts-showcase/#linux-kde-wallpaper-changer

regards,
Erik

#7 createmo on 11.02.08 at 7:37 am

Thank you for your website :)
I made on photoshop backgrounds for myspace or youtube and even more
my backgrounds:http://tinyurl.com/5fmh8q
have a great day and thank you again!

Leave a Comment