Screensavers in Ubuntu 9.10

I used to do some incredible tweaking for my screensaver in Ubuntu, especially because gnome-screensaver wouldn’t allow for editing the particular screensaver options like xscreensaver would (see: https://wiki.ubuntu.com/ScreenSaver). These days, I don’t want to tweak… I just want the thing to shut off when I am watching fullscreen flash video, so that I don’t have to wiggle the mouse every ten minutes. :-)

So I made a simple toggle script and created a launcher for the script on the desktop. Gonna watch video? Double-click the icon. Done watching video, double-click the icon.

#!/bin/bash
PID=`pidof gnome-screensaver`

if [ "$PID" != "" ]; then
        #gnome-screensaver is running shut it down
        killall -9 gnome-screensaver
else
        #gnome-screensaver is not running, start it up
        gnome-screensaver
fi

This entry was posted on Friday, March 12th, 2010 at 8:17 pm. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply