From 24a718bacb6003a54ef708e49723a965ee0426c6 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Wed, 8 Jan 2025 18:43:58 -0800 Subject: [PATCH] Update wallpaper transition fps and swww dependency is only checked if wallpaper is enabled. (#703) --- README.md | 12 ++++++------ src/services/Wallpaper.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c05af98..d2a5c9e 100644 --- a/README.md +++ b/README.md @@ -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 { # ... } diff --git a/src/services/Wallpaper.ts b/src/services/Wallpaper.ts index 42cfe93..684b5ea 100644 --- a/src/services/Wallpaper.ts +++ b/src/services/Wallpaper.ts @@ -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, () => {