All pastes #1209615 Raw Edit

Mine

public text v1 · immutable
#1209615 ·published 2008-09-23 19:14 UTC
rendered paste body
#!/bin/bash

# Animated Desktop v0.3 by r0ot
# 2008 - bash
# elteter0ot@gmail.com
# edited by Travis Place (wishie@wishie.net)

###############################################################
#                       Preferences                           #
###############################################################

# Uncomment the video file to use

#VIDEO=~/animated_desktop/tren.avi
#VIDEO=~/animated_desktop/chaostheory.avi
VIDEO=~/animated_desktop/spiritheory.avi
#VIDEO=~/animated_desktop/Horaktartz.avi
#VIDEO=~/animated_desktop/George_Washington.avi
#VIDEO=~/animated_desktop/Energy_Field_by_Snowmanzors.divx
#VIDEO=~/animated_desktop/locemotion.avi
#VIDEO=~/animated_desktop/wraith3d.avi
#VIDEO=~/animated_desktop/skulls.mpg
#VIDEO=~/animated_desktop/glassthing.mpg

# Uncomment the screensaver to use

SAVER=/usr/lib/xscreensaver/glmatrix
#SAVER=/usr/lib/xscreensaver/blinkbox
#SAVER=/usr/lib/xscreensaver/hufo_tunnel

#################################################################

case $1 in
	video)
		echo using `basename $VIDEO`
		xwinwrap -ni -o 1.0 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet -nosound ~/animated_desktop/tren.avi -loop 0 &
	;;
	screensaver)
		xwinwrap -ni -argb -fs -s -st -sp -nf -b -- $SAVER -window-id WID &
	;;
	stop)
		killall xwinwrap 2>/dev/null
	;;
	*)
		echo "Usage: $0 { video | screensaver | stop }"
		echo ""
		echo "options:"
		echo "		video - use `basename $VIDEO` as the wallpaper (edit $0 to configure)"
		echo "		screensaver - use `basename $SAVER` as the wallpaper (edit $0 to configure)"
		echo "		stop - Stop $0 and use your usual wallpaper"
	;;
esac