Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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