Skip to content

Instantly share code, notes, and snippets.

@clonejo
Created November 14, 2012 19:13
Show Gist options
  • Select an option

  • Save clonejo/4074099 to your computer and use it in GitHub Desktop.

Select an option

Save clonejo/4074099 to your computer and use it in GitHub Desktop.
Wallpaper changer script for use with Mate Desktop
#!/bin/sh
dir="/path/to/your/wallpaper/folder/"
change() {
PIC=$(find $dir -type f \( ! -regex '.*/\..*' \) | shuf -n1)
echo $PIC >> "/path/to/your/log/file"
mateconftool-2 -t string -s /desktop/mate/background/picture_filename $PIC
}
change
while true;do
# modify to adjust changing interval
sleep 3600
change
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment