Skip to content

Instantly share code, notes, and snippets.

Last active December 16, 2015 15:19
What would you like to do?
A small script that helps reduce eyestrain by periodically dimming the display.
# 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}`
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment