Previously I posted a script for use on Linux systems which stops xscreensaver from kicking in when a full-screen window has focus. While useful for some setups this script isn’t well suited to multiple monitor configurations where the likelihood of a full-screen window not having focus is greater. This post details a script which remedies this problem.
The script works by performing a check every 30 seconds for a full screen window (not maximised). If there are any the script tells xscreensaver to restart its count of how long the user has been idle.
The script should be downloaded into any folder you think is best. To start the script a command similar to the following should be used:
You should add this command to your session’s autostart applications and next time you log in xscreensaver will be prevented from running while you have any full-screen windows present. This include full-screen flash and HTML5 videos, meaning xscreensaver won’t interrupt Youtube or Netflix if you’re watching them in full-screen.
The script should be usable on other Linux platforms that can use bash scripts and xscreensaver.
Feel free to modify the script if you can think of any improvements.