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;

View File

@@ -21,15 +21,28 @@ export const WP = App.configDir + "/assets/";
export const lightColors = {
"theme.scheme": "light",
"color.red": "#e55f86",
"color.green": "#00D787",
"color.yellow": "#EBFF71",
"color.blue": "#51a4e7",
"color.magenta": "#9077e7",
"color.teal": "#51e6e6",
"color.orange": "#E79E64",
"theme.bg": "#fffffa",
"theme.fg": "#141414",
"color.red": "#d20f39",
"color.green": "#40a02b",
"color.yellow": "#df8e1d",
"color.blue": "#1e66f5",
"color.magenta": "#8839ef",
"color.teal": "#179299",
"color.orange": "#fe640b",
"theme.bg": "transparentize(#eff1f5, 0.3)",
"theme.fg": "#4c4f69",
};
export const darkColors = {
"theme.scheme": "dark",
"color.red": "#e78284",
"color.green": "#a6d189",
"color.yellow": "#e5c890",
"color.blue": "#8caaee",
"color.magenta": "#ca9ee6",
"color.teal": "#81c8be",
"color.orange": "#ef9f76",
"theme.bg": "transparentize(#303446, 0.3)",
"theme.fg": "#c6d0f5",
};
export const Theme = ({ name, icon = " ", ...options }) => ({

View File

@@ -13,13 +13,7 @@ export function initWallpaper() {
export function wallpaper() {
if (!dependencies(["swww"])) return;
execAsync([
"swww",
"img",
"--transition-type",
"grow",
"--transition-pos",
exec("hyprctl cursorpos").replace(" ", ""),
options.desktop.wallpaper.img.value,
]).catch((err) => console.error(err));
execAsync(["swww", "img", options.desktop.wallpaper.img.value]).catch((err) =>
console.error(err),
);
}