feat: update system

This commit is contained in:
2024-02-07 14:25:34 +01:00
parent 3bfeb8e6fc
commit 09afd0bef6
67 changed files with 933 additions and 1347 deletions

View File

@@ -13,7 +13,7 @@ class Asusctl extends Service {
);
}
profiles = Object.freeze(["Performance", "Balanced", "Quiet"]);
profiles = /** @type {const} */ (["Performance", "Balanced", "Quiet"]);
#profile = "Balanced";
#mode = "Hyprid";

View File

@@ -1,8 +1,8 @@
import Notifications from "resource:///com/github/Aylur/ags/service/notifications.js";
import { Variable } from "resource:///com/github/Aylur/ags/variable.js";
import * as Utils from "resource:///com/github/Aylur/ags/utils.js";
import Service from "resource:///com/github/Aylur/ags/service.js";
import { dependencies } from "../utils.js";
import icons from "../icons.js";
const COLORS_CACHE = Utils.CACHE_DIR + "/colorpicker.json";
@@ -58,15 +58,15 @@ class Colors extends Service {
);
}
this.#notifID = Notifications.Notify(
"Color Picker",
this.#notifID,
"color-select-symbolic",
color,
"",
[],
{},
);
const n = await Utils.notify({
id: this.#notifID,
iconName: icons.ui.colorpicker,
summary: color,
actions: {
Copy: () => this.wlCopy(color),
},
});
this.#notifID = n.id;
}
}