diff --git a/scripts/sunset.sh b/scripts/sunset.sh index 873db0f..ebdcc4e 100755 --- a/scripts/sunset.sh +++ b/scripts/sunset.sh @@ -9,7 +9,7 @@ SUNSET_END="$((23 * 60 * 60))" # When to reach min temperature DAY_TEMP="6000" # Display temperature (K) to use in full daylight NIGHT_TEMP="2400" # Display temperature (K) to use at night -CURRENT="$(((($(date '+%H') * 60) + $(date '+%M')) * 60 + $(date '+%S')))" # Time in seconds since start of day +CURRENT="$(((($(date '+%-H') * 60) + $(date '+%-M')) * 60 + $(date '+%-S')))" # Time in seconds since start of day # Performs a calculation using an argument containing an input string calc() {