Howto Loop Movie, Video, and Display Screensaver as Desktop Wallpaper in Ubuntu

Want to loop a video clip or movie on your desktop? I did and found a nice little tool that does just that



First lets grab some essential building libraries via the terminal: Applications->Accessories->Terminal

sudo apt-get install build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev cvs

Now lets Install xwinwrap:

cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
cd xwinwrap
make
sudo cp xwinwrap /usr/bin


Now lets start our video/movie as the Desktop Wallpaper!
First find a video/movie you would like to set as your backround and issue this command:

xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -wid WID -nosound "Steal This Film II.Xvid.avi" -loop 0


Now everything should be working fine, if you would like sound, remove -nosound

You can also display Screensavers as your background:

nice -n 15 ./xwinwrap -ni -o 0.20 -fs -s -sp -st -b -nf -- /usr/lib/xscreensaver/glmatrix -root -window-id WID