Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing The Background 3

Status
Not open for further replies.

iaresean

Programmer
Mar 24, 2003
570
ZA
Hey there all you unix gurus!

I have quite a tough little question that needs answering. Answers will be rewarded.

I have a nice collection of calvin and hobbes comics on my box, enough to display one a day for the year. At the moment I am trying to write a script that will be executed via cron.daily (I think) that will change my desktop background to the next calvin and hobbes picture.

How would I do this?

My pics have the following naming convention:
ch0001.gif ch0002.gif ch0003.gif ...... ch0365.gif

Any ideas are greatly appreciated, even negative ones. If it can't be done please let me know.

Thanks a bunch.
Sean.
 
Does your machine run overnight?

If you start it every day, you could put the command in the startscripts, before starting your X.
 
it usually runs overnight. however, chbg won't even run in pure terminal mode anymore...

$chbg -once

**Gdk-Warning: Could not open display (orsomethinglikethat)

Thanx


-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

echo `fortune fortunes`$'\b in bed.'
Your lover will never wish to leave you in bed.
 
of course not, but you could replace the bg_image with a daily image daily on startup.
 
yeah but i'm trying to get the random gradient feature from chbg w/o storing all couple hundred backgrounds on disk.


-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

echo `fortune fortunes`$'\b in bed.'
Your lover will never wish to leave you in bed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top