Created
October 20, 2010 16:27
-
-
Save noctivityinc/636751 to your computer and use it in GitHub Desktop.
Changes the desktop background using random pictures in a folder
This file contains 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
This script creates a variety of different montage like backgrounds for Mac using random pictures from your machine. I personally place this in in the root of either the Originals folder in iPhoto or in the Photobooth folder and let it go nuts. | |
You need the following for this to work: | |
1 - Ruby 1.8.7 or higher | |
2 - ImageMagick installed (use Macports) | |
3 - These files: http://cl.ly/240a2a264b0b155a3764 | |
To get it to work, place create_wallpaper.rb and montage.png in the ROOT of whatever folder has your images. It will recurse subdirectories. | |
Then just run "ruby create_wallpaper.rb" | |
WHY DID I CREATE THIS? | |
I have 13,000 pictures on my computer, most of which I never see, so I wrote this to see them. I run it as a cron job every 20 minutes to update the pic (warning - ImageMagick sometimes hangs when you do this) | |
WILL IT WORK WITH AN EXTERNAL MONITOR | |
Yes! Just do ruby create_wallpaper.rb 2 to specify the second monitor. | |
THEY'RE STARING AT ME, MAKE THEM STOP! | |
You can type "ruby create_wallpaper.rb black" to go black for your wallpaper. | |
Twitter me @jlippiner if you have questions. | |
(c) 2010 Joshua Lippiner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment