Fix night light indicator state

This commit is contained in:
David Heinemeier Hansson
2026-05-29 09:42:24 +02:00
parent c795d52201
commit 6be9b8b6d9
4 changed files with 44 additions and 3 deletions
+3 -2
View File
@@ -6,6 +6,7 @@
ON_TEMP=4000
OFF_TEMP=6500
IDENTITY_TEMP=6000
current_temp() {
local output
@@ -18,7 +19,7 @@ status_json() {
local temp enabled
temp=$(current_temp)
if [[ -n $temp && $temp != $OFF_TEMP ]]; then
if [[ -n $temp ]] && (( temp < IDENTITY_TEMP )); then
enabled=true
else
enabled=false
@@ -48,4 +49,4 @@ else
hyprctl hyprsunset temperature $OFF_TEMP
fi
omarchy-shell -q Indicators refresh
omarchy-shell -q omarchy.indicators refresh