Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmerrick/set-desktop

Sets the desktop image on OS X.
https://github.com/dmerrick/set-desktop

Last synced: about 2 months ago
JSON representation

Sets the desktop image on OS X.

Awesome Lists containing this project

README

        

This program is used to set the background on a computer running OS X.
The tricky thing is that it saves the desired image inside the script itself.

This is useful for pranking your friends who leave their computers unprotected
insofar as you could run something like:

curl -L http://tinyurl.com/setdesktop | ruby

To quickly set the background to whatever you'd like to make them look at. (The -L flag is needed when using an alias like tinyurl.)

=== Changing the saved image
To change the image stored in this file, simply run this script on your
computer with the filename as an argument. It can even be a URL!

For instance:
set_desktop.rb ~/Downloads/funny.png
set_desktop.rb http://farm1.static.flickr.com/4/6532650_7c255cbbd8_o_d.jpg

=== Using a screenshot
To quickly recreate an old computer prank, you can choose to use a screenshot
instead of a stored image. Once you do, you can hide all of their windows
and watch them try to figure out why nothing is reponding to their clicks.

To do this, use the #create_image_from_screenshot method.

=== Changing the login image
To be even more devious, you can use this program to change the image on the
OS X login screen. They won't notice til they reboot, and most people don't
know how to change it back!

To do this, use the #set_login_image! method.

Author:: Dana Merrick (mailto:[email protected])
Copyright:: Copyright (c) 2009 Dana Merrick
License:: Released under the MIT license