Created
November 14, 2012 19:13
-
-
Save clonejo/4074099 to your computer and use it in GitHub Desktop.
Wallpaper changer script for use with Mate Desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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