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.

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.

CC BY-SA 4.0 Linux – Disabling the Screensaver, xkill-Style by Stephan Sokolow is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This entry was posted in Geek Stuff. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution under the same terms as the associated post.

All comments are moderated. If your comment is generic enough to apply to any post, it will be assumed to be spam. Borderline comments will have their URL field erased before being approved.