Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

How to set the background image using xv.

I was fed up with using fbsetroot... xsetroot... etc to set my background image, so I decided to see if xv would do it for me since it's a program that I actually use for more than just background setting like fbsetroot, xsetroot, etc.

xv -root -quit -maxpect ~/images/blah.jpg

Screensaver as desktop background

# cf. http://digg.com/apple/Top_15_Terminal_Commands_for_Hidden_Mac_OS_X_Settings

function sadb() {
# cf. /usr/bin/locate '*ScreenSaverEngine'
/usr/bin/screen -d -m /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background 
return 0
}

function sadb_stop() {
#/usr/bin/killall -d ScreenSaverEngine
#/usr/bin/killall -v ScreenSaverEngine
/usr/bin/killall -HUP ScreenSaverEngine
return 0
}

sadb
sleep 30
sadb_stop