Update wallpaper transition fps and swww dependency is only checked if wallpaper is enabled. (#703)

This commit is contained in:
Jas Singh
2025-01-08 18:43:58 -08:00
committed by GitHub
parent 9663d2f6b7
commit 24a718bacb
2 changed files with 8 additions and 8 deletions

View File

@@ -171,14 +171,14 @@ Alternatively, if you're using NixOS and/or Home-Manager, you can setup AGS usin
outputs = { self, nixpkgs, ... }@inputs:
let
# ...
system = "x86_64-linux"; # change to whatever your system should be.
system = "x86_64-linux"; # change to whatever your system should be.
pkgs = import nixpkgs {
inherit system;
# ...
overlays = [
inherit system;
# ...
overlays = [
inputs.hyprpanel.overlay
];
};
];
};
in {
# ...
}

View File

@@ -26,7 +26,7 @@ class Wallpaper extends GObject.Object {
'--transition-duration',
'1.5',
'--transition-fps',
'30',
'60',
'--transition-pos',
cursorPosition.replace(' ', ''),
WP,
@@ -100,7 +100,7 @@ class Wallpaper extends GObject.Object {
}
});
if (dependencies('swww') && options.wallpaper.enable.get()) {
if (options.wallpaper.enable.get() && dependencies('swww')) {
this.#isRunning = true;
monitorFile(WP, () => {