Skip to content

Instantly share code, notes, and snippets.

@ssokolow
Created June 25, 2009 02:56
Show Gist options
  • Save ssokolow/135655 to your computer and use it in GitHub Desktop.
Save ssokolow/135655 to your computer and use it in GitHub Desktop.
xkill-style screensaver-disabling which won't leave it disabled by accident
#!/bin/sh
# A simple little script which prompts you to click a window and then disables
# the screensaver until it goes away.
WID=`xwininfo -int | awk '/Window id/ {print $4}'`
xdg-screensaver suspend "$WID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment