all repos — dotfiles-extra @ d8e4339a351e8556ffe76d3c79be8c8fafa9cd66

extra configs that may be extraneous and/or may be platform specific

bin/redscript

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
#!/bin/sh

# redscript: uses redshift to change screen color temperature to reduce blue 
# light, set it back to default, or even manually set it.
# x1phosura

# redshift -P -O <temperature number>
# Note: temperature 1000 - 25000, default is 6500

if [ "$1" = "" ]; then
    redshift -P -O 6500  # default: revert back to neutral color temperature
elif [ "$1" = "MID" ]; then
    redshift -P -O 4200
elif [ "$1" = "LOW" ]; then
    redshift -P -O 3000
elif [ "$1" = "SET" ]; then
    redshift -P -O "$2"  # set color temperature manually
else
    printf "Options:\n"
    printf "    <nothing>\n    MID\n    LOW\n    SET <number 1000-25000>\n"
fi