Skip to content

Instantly share code, notes, and snippets.

@studioromeo
Last active December 16, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save studioromeo/5454975 to your computer and use it in GitHub Desktop.
Save studioromeo/5454975 to your computer and use it in GitHub Desktop.
A small script that helps reduce eyestrain by periodically dimming the display.
#!/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}`
@studioromeo
Copy link
Author

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