Add gamma indicator

This commit is contained in:
altrup
2026-03-22 16:52:35 -04:00
parent 9d065f2c8e
commit 973b83bc15
4 changed files with 32 additions and 0 deletions
@@ -13,6 +13,8 @@ import Quickshell.Hyprland
*/
Singleton {
id: root
signal gammaChangeAttempt()
property string from: Config.options?.light?.night?.from ?? "19:00"
property string to: Config.options?.light?.night?.to ?? "06:30"
property bool automatic: Config.options?.light?.night?.automatic && (Config?.ready ?? true)
@@ -105,6 +107,8 @@ Singleton {
function setGamma(gamma) {
root.gamma = Math.max(0, Math.min(100, gamma));
root.gammaChangeAttempt();
if (root.gamma !== 100) {
// console.log("[Hyprsunset] Enabling");
Quickshell.execDetached(["bash", "-c", `