Created
February 16, 2016 08:34
-
-
Save juice500ml/ea49ef432b5ae75b208e to your computer and use it in GitHub Desktop.
input: turn off/on seconds of monitor brightness.
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
id=$(xrandr | sed -n 2p | awk '{print $1}') | |
read -p "Enter turned on seconds : " on | |
read -p "Enter turned off seconds : " off | |
while [ 1 ] | |
do | |
xrandr --output $id --brightness 1 | |
sleep $on | |
xrandr --output $id --brightness 0 | |
sleep $off | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment