Simple script to deactivate XScreenSaver while video (or audio) is running (in a browser or video player)
- Works for browser video as well as apps like VLC
- Will allow XScreenSaver if video is paused
- Will work on windowed or full screen mode
- Should detect change in XScreenSaver timeout and adjust polling interval to minimize unnecessary running
- Download smart-xscreensaver
sudo wget https://raw.githubusercontent.com/adityaravishankar/smart-xscreensaver/master/smart-xscreensaver -O /usr/local/bin/smart-xscreensaver
- Make smart-xscreensaver executable
sudo chmod +x /usr/local/bin/smart-xscreensaver
- Load smart-xscreensaver on boot using your OS startup application editor.
Copyright (c) 2017 Aditya Ravi Shankar
Released under the MIT License.