Wednesday, December 21, 2011

f16 wallpaper fun

I managed to get an automatic wallpaper changer working in Fedora 16 in GNOME Shell, thanks to Ubuntu forum member "mareser." It's a script run by a cron job. mareser provides the script and a command to set up the cron job in this thread; anyone interested can pick them up from there.

Since I was trying this in Fedora 16 (not in Ubuntu), I did a few things differently. I dropped some wallpapers into a directory called ~/wallpapers, extracted the script to my home directory, and within the script edited the following line to read:


I edited his command for setting up the cron job, changing the time interval from "30" to "10," and replacing "$USER" with "steve" and "$HOME/edit/this/path/" with "/home/steve/" I used su - to get root access instead of sudo, so here's the command I used to set up the crontab:

# sh -c "echo \*/2 \* \* \* \* steve bash /home/steve/ >> /etc/crontab"

Well, it works, and it'll do for now until I find a really nice GUI automatic wallpaper changer for GNOME Shell that works in Fedora.

No comments: