change hyprsunset default color temp to 6000

This commit is contained in:
Reluckycf
2026-04-25 18:58:48 -05:00
parent a2c1641090
commit 72d950ed51
@@ -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);
}
}