I realised that I had to do an online search myself and found this page:

http://ubuntuforums.org/showthread.php?t=1767979

I did #3:

$sudo cp wallpaper_changer.sh ~/.config/autostart/

and this script:

# Script to randomly set Background from files in a directory
while true;do

# Directory Containing Pictures
DIR0="/home/username/Pictures"
DIR1="/home/username/1000 HD Wallpapers (By Mellori Studio)/Animals"
DIR2="/home/username/1000 HD Wallpapers (By Mellori Studio)/Nature"

# Command to Select a random jpg file from directory
# Delete the *.jpg to select any file but it may return a folder
PIC=$(find "$DIR0" "$DIR1" "$DIR2" -type f -name "*.jpg" | shuf -n1)

# Command to set Background Image
gsettings set org.mate.background picture-filename "$PIC"

# specify how long to wait in seconds between changes
sleep 120

done

After rebooting, this works! Yeah ;-) Thanks very much.

Reply via email to