2008-02-16
Linux - Disabling the Screensaver, xkill-Style
Ever wanted a nice comfy way to tell your system “Disable the screensaver until this window closes”? If so, drop this shell script onto your system and make sure that you’ve got the xwininfo, xdg-screensaver, and awk commands installed.
#!/bin/sh
WID=`xwininfo -int | awk '/Window id/ {print $4}'`
xdg-screensaver suspend "$WID"
When you run the script, it’ll grab the cursor like xkill does. Once you pick a window, the screensaver will be disabled until it closes. You can also create a script to reverse the process by replacing “suspend” with “resume” in the last line.

The Linux - Disabling the Screensaver, xkill-Style by Stephan Sokolow, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 2.5 Canada License.

