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

@@ -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),
);
}