This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This program monitors the screensaver and turns the monitor off | |
# when the screensaver blanks the screen, and back on again when | |
# the screensaver unblanks the screen. | |
import sys # for exit() | |
import subprocess # for command execution | |
# command to monitor the screensaver | |
MONITOR = "xscreensaver-command" | |
MONITOR_ARGS = [MONITOR, "-watch"] |