mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
change hyprsunset default color temp to 6000
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user