~/naes/blog

Saturday, August 12, 2006

Playing Movie as Desktop Background in XGL

Within an XGL environment you can play movies & screensavers as part of your desktop background, which requires xwinwrap.

I spotted the following bash scripts in the Ubuntu forums, which allows you to play a movie by right clicking on a file in Nautilus file manager and selecting Scripts from the menu. I've extended the start script with Zenity to give a GUI useability.


#!/bin/bash
if
zenity --question --title="Run movie as desktop background?" --text="This script will allow you to play a movie on the desktop within your XGL environment.\n\nClick the OK button and choose the movie from the file selection."
then
xwinwrap -ni -o 0.6 -fs -s -sp -st -b -nf -- mplayer -wid WID "`zenity --file-selection`"
fi

0 Comments:

Post a Comment

<< Home