23 lines
648 B
Bash
Executable File
23 lines
648 B
Bash
Executable File
#!/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
|
|
|