Update wallpaper transition fps and swww dependency is only checked if wallpaper is enabled. (#703)
This commit is contained in:
12
README.md
12
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:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
let
|
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 {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
# ...
|
# ...
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.hyprpanel.overlay
|
inputs.hyprpanel.overlay
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# ...
|
# ...
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Wallpaper extends GObject.Object {
|
|||||||
'--transition-duration',
|
'--transition-duration',
|
||||||
'1.5',
|
'1.5',
|
||||||
'--transition-fps',
|
'--transition-fps',
|
||||||
'30',
|
'60',
|
||||||
'--transition-pos',
|
'--transition-pos',
|
||||||
cursorPosition.replace(' ', ''),
|
cursorPosition.replace(' ', ''),
|
||||||
WP,
|
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;
|
this.#isRunning = true;
|
||||||
|
|
||||||
monitorFile(WP, () => {
|
monitorFile(WP, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user