#!/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 # 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 " \n MID\n LOW\n SET \n" fi