feat: improve ags

This commit is contained in:
2024-01-07 19:26:29 +01:00
parent e5796d4d6e
commit 2c2b62d14e
12 changed files with 60 additions and 35 deletions

View File

@@ -16,6 +16,7 @@ export function init() {
warnOnLowBattery();
globals();
tmux();
kitty();
gsettigsColorScheme();
gtkFontSettings();
dependandOptions();
@@ -35,6 +36,18 @@ function dependandOptions() {
});
}
function kitty() {
if (!Utils.exec("which kitty")) return;
console.log("kitty");
options.theme.scheme.connect("changed", ({ value }) =>
Utils.execAsync(
`kitty +kitten themes --reload-in=all --config-file-name /home/theaninova/.config/kitty/current-colors.conf Catppuccin-${
value === "light" ? "Latte" : "Frappe"
}`,
),
);
}
function tmux() {
if (!Utils.exec("which tmux")) return;