From d0d19007d9f698b93535a9751b82c00c2a734991 Mon Sep 17 00:00:00 2001 From: Oliver Tosky Date: Sat, 21 Sep 2024 13:12:01 -0400 Subject: [PATCH] use swww for animated wallpapers --- homes/_modules/desktop/hyprland.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/homes/_modules/desktop/hyprland.nix b/homes/_modules/desktop/hyprland.nix index c9295bf..0c224c5 100644 --- a/homes/_modules/desktop/hyprland.nix +++ b/homes/_modules/desktop/hyprland.nix @@ -7,6 +7,7 @@ hyprland = pkgs.inputs.hyprland.hyprland.override {wrapRuntimeDeps = false;}; xdph = pkgs.inputs.hyprland.xdg-desktop-portal-hyprland.override {inherit hyprland;}; wallpaper = "/etc/_wallpapers/milad-fakurian-JrMz6hVQeu4-unsplash.jpg"; + gifWallpaper = "/home/olivertosky/Downloads/midnight.gif"; in { imports = [ ./common @@ -20,6 +21,7 @@ in { home.packages = with pkgs; [ inputs.hyprwm-contrib.grimblast + swww # hyprslurp # hyprpicker firefox @@ -59,8 +61,12 @@ in { gaps_out = 10; border_size = 1; }; - exec = ["${pkgs.swaybg}/bin/swaybg -i ${wallpaper} --mode fill"]; - exec-once = ["${pkgs.swaynotificationcenter}/bin/swaync"]; + exec-once = [ + "${pkgs.swaynotificationcenter}/bin/swaync" + "${pkgs.swww}/bin/swww-daemon" + ]; + # exec = ["${pkgs.swaybg}/bin/swaybg -i ${wallpaper} --mode fill"]; + exec = ["${pkgs.swww}/bin/swww img ${gifWallpaper}"]; decoration = { rounding = 10;