Xfce4 – Wallpaper Switching.

This was a function which I lost when I switched from Crunchbang Linux to Mint Linux. Basically I had a cron job running which changed the desktop wallpaper to another random wallpaper from the list of available wallpapers.

Once a list of wallpapers has been created then a random wallpaper can be loaded by running the command:

/usr/bin/xfdesktop –reload

To make
this happen at regular intervals just add a line to the cron file:

*/5 * * * * export DISPLAY=:0.0 &&  /usr/bin/xfdesktop –reload > /dev/null>&1

This changes the wallpaper every five minutes.

The next thing to look at is automating pulling down wallpapers from something DeviantArt.

[Edit]: Had to update the crontab command as it wasn’t working without the ‘export DISPLAY’ bit.


Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s