Skip to content

Instantly share code, notes, and snippets.

@JoshuaSkootsky
Created January 26, 2020 13:44
Show Gist options
  • Save JoshuaSkootsky/2e5c6cc62dab64f2fb664098df34a38d to your computer and use it in GitHub Desktop.
Save JoshuaSkootsky/2e5c6cc62dab64f2fb664098df34a38d to your computer and use it in GitHub Desktop.
Short little script for redshift. Specify brightness or use default value.
#!/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