From aef15f05f6b5c3cd1f7859af7a015c4e4804fa9c Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 26 May 2024 15:16:41 -0500 Subject: [PATCH] + rshift --- dots/bash/.bashrc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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