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
#!/bin/bash | |
# suspend/sleep linux system on xscreensaver activation | |
# | |
# run the bash script in your .xsession, | |
# or something like .config/lxsession/LXDE/autostart for lxde | |
timeout=60 # After xscreensaver activated, wait timeout to suspend | |
read_timeout=5 # timeout for read from `xscreensaver-command -watch` | |
SUSPEND_BIN=/usr/sbin/pm-suspend |
OlderNewer