🔧 chore(scripts): migrate util scripts to gtk4 and ags v3

This commit is contained in:
retrozinndev
2025-06-30 17:55:28 -03:00
parent 29f5c04c31
commit 33e6ee2490
16 changed files with 242 additions and 216 deletions
+9 -4
View File
@@ -1,4 +1,9 @@
import { AstalIO, exec, execAsync, GLib, GObject, interval, property, register } from "astal";
import AstalIO from "gi://AstalIO";
import GLib from "gi://GLib?version=2.0";
import GObject, { getter, register } from "ags/gobject";
import { execAsync, exec } from "ags/process";
import { interval } from "ags/time";
export { NightLight };
@@ -14,11 +19,11 @@ class NightLight extends GObject.Object {
#prevTemperature: (number|null) = null;
#prevGamma: (number|null) = null;
@property(Number)
@getter(Number)
public get temperature() { return this.#temperature; }
public set temperature(newValue: number) { this.setTemperature(newValue); }
@property(Number)
@getter(Number)
public get gamma() { return this.#gamma; }
public set gamma(newValue: number) { this.setGamma(newValue); }
@@ -27,7 +32,7 @@ class NightLight extends GObject.Object {
public readonly identityTemperature = 6000;
public readonly maxGamma = 100;
@property(Boolean)
@getter(Boolean)
public get identity() { return this.#identity; }
public set identity(newValue: boolean) {
newValue ? this.applyIdentity() : this.filter();