Last active
July 28, 2017 00:34
-
-
Save slpsys/88f06696a43d9385c62b to your computer and use it in GitHub Desktop.
On a Mac, prerequisite is `brew install 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
#!/bin/bash | |
i=0 | |
step=0.1 | |
while true | |
do | |
b=$(echo "scale=3;(s($i)+1)*0.5" | bc -l) | |
brightness $b | |
i=$((i+1)) | |
sleep $step | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment