A small script that helps reduce eyestrain by periodically dimming the display.
This file contains 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/sh | |
# Get the original brightness | |
BRIGHTNESS=`/rest/brightness -l`; | |
# Dim the screen to it's lowest setting | |
`/rest/brightness 0` | |
# Stop for 5 minutes | |
sleep 300 | |
# Back to work! | |
`/rest/brightness ${BRIGHTNESS:60:8}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependencies
http://hints.macworld.com/article.php?story=20090901021817717