diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 2e27f81..aa53d81 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -68,6 +68,32 @@ screensaver() { fi } +rshift() { + cmd="default" + if [[ -n $1 ]]; then + cmd=$1 + fi + + if [ ${cmd} == "info" ] ; then + echo "{morning, day, evening, night, bedtime}" + elif [ ${cmd} == "morning" ] ; then + temperature=4500 + elif [ ${cmd} == "day" ] ; then + # 6500 is default temperatature + temperature=6500 + elif [ ${cmd} == "evening" ] ; then + temperature=3500 + elif [ ${cmd} == "night" ] ; then + temperature=2500 + elif [ ${cmd} == "bedtime" ] ; then + temperature=1200 + else + temperature=${cmd} + fi + + redshift -P -O ${temperature} +} + # display setup ds11() { if [ $1 == "info" ] ; then