From 72d950ed51e631034cc2adcb4ef9d8abd86a2eb8 Mon Sep 17 00:00:00 2001 From: Reluckycf Date: Sat, 25 Apr 2026 18:58:48 -0500 Subject: [PATCH] change hyprsunset default color temp to 6000 --- dots/.config/quickshell/ii/services/Hyprsunset.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/services/Hyprsunset.qml b/dots/.config/quickshell/ii/services/Hyprsunset.qml index 9a1e4c4f2..8531b991d 100644 --- a/dots/.config/quickshell/ii/services/Hyprsunset.qml +++ b/dots/.config/quickshell/ii/services/Hyprsunset.qml @@ -21,6 +21,7 @@ Singleton { property string to: Config.options?.light?.night?.to ?? "06:30" property bool automatic: Config.options?.light?.night?.automatic && (Config?.ready ?? true) property int colorTemperature: Config.options?.light?.night?.colorTemperature ?? 5000 + property int defaultColorTemperature: 6000 property int gamma: 100 property bool shouldBeOn property bool firstEvaluation: true @@ -112,7 +113,7 @@ Singleton { function disableTemperature() { root.temperatureActive = false; // console.log("[Hyprsunset] Disabling"); - Quickshell.execDetached(["hyprctl", "hyprsunset", "identity"]); + Quickshell.execDetached(["bash", "-c", `hyprctl hyprsunset temperature ${root.defaultColorTemperature}`]); } function setGamma(gamma) { @@ -139,7 +140,7 @@ Singleton { if (output.length == 0 || output.startsWith("Couldn't")) root.temperatureActive = false; else - root.temperatureActive = (output != "6500"); // 6500 is the default when off + root.temperatureActive = (output != root.defaultColorTemperature); // 6000 is the default when off // console.log("[Hyprsunset] Fetched state:", output, "->", root.temperatureActive); } }