Created
January 26, 2020 13:44
-
-
Save JoshuaSkootsky/2e5c6cc62dab64f2fb664098df34a38d to your computer and use it in GitHub Desktop.
Short little script for redshift. Specify brightness or use default value.
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 | |
#redshift script with an optional command line argument | |
# $1 = brightness percentage, 4 = 40%, optional command line argument | |
# usage: ./less-bright.sh 5 (for 50%) | |
#./less-bright.sh | |
brt=${1:-4} | |
echo "${brt}0% brightness" | |
#redshift | |
#change these if you want | |
redshift -t 4000:3800 -b "0.${brt}":"0.${brt}" -l 40.1:74.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment