+ rshift
This commit is contained in:
@@ -68,6 +68,32 @@ screensaver() {
|
|||||||
fi
|
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
|
# display setup
|
||||||
ds11() {
|
ds11() {
|
||||||
if [ $1 == "info" ] ; then
|
if [ $1 == "info" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user