Mplayer and Gnome's screensaver.

By Hal Canary, 2010-02-17 21:05:06 (link)
#computers-code

#!/bin/sh
#DTPD
gnome-screensaver-command --inhibit &
INHIBIT_PID=$!
mplayer -dvd-device /dev/scd0 -ontop \
	-fs dvdnav:// -nocache 2> /dev/null
kill $INHIBIT_PID

This is how to use gnome-screensaver's inhibit command with a video player such as mplayer.


(back)