Compare commits
2 commits
76930fe033
...
68b2e276c3
Author | SHA1 | Date | |
---|---|---|---|
68b2e276c3 | |||
5c753ff5ec |
2 changed files with 3 additions and 1 deletions
|
@ -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
|
DAY_TEMP="6000" # Display temperature (K) to use in full daylight
|
||||||
NIGHT_TEMP="2400" # Display temperature (K) to use at night
|
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
|
# Performs a calculation using an argument containing an input string
|
||||||
calc() {
|
calc() {
|
||||||
|
@ -61,4 +61,5 @@ else
|
||||||
TEMP="$NIGHT_TEMP"
|
TEMP="$NIGHT_TEMP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO: Figure out a nice way to wait until Hyprland has properly started up before running this
|
||||||
hyprctl hyprsunset temperature "$TEMP"
|
hyprctl hyprsunset temperature "$TEMP"
|
||||||
|
|
|
@ -6,6 +6,7 @@ After=hyprsunset.service
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* *:*:00
|
OnCalendar=*-*-* *:*:00
|
||||||
Persistent=true
|
Persistent=true
|
||||||
|
AccuracySec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue