diff --git a/scripts/sunset.sh b/scripts/sunset.sh index fb25f57..873db0f 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() { @@ -61,5 +61,4 @@ else TEMP="$NIGHT_TEMP" fi -# TODO: Figure out a nice way to wait until Hyprland has properly started up before running this hyprctl hyprsunset temperature "$TEMP" diff --git a/systemd/sunset.timer b/systemd/sunset.timer index ac60c6b..2f2da6c 100644 --- a/systemd/sunset.timer +++ b/systemd/sunset.timer @@ -6,7 +6,6 @@ After=hyprsunset.service [Timer] OnCalendar=*-*-* *:*:00 Persistent=true -AccuracySec=5s [Install] WantedBy=timers.target