Skip to content

Commit

Permalink
use swww for animated wallpapers
Browse files Browse the repository at this point in the history
  • Loading branch information
otosky committed Sep 21, 2024
1 parent ac8cbca commit d0d1900
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions homes/_modules/desktop/hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,6 +21,7 @@ in {

home.packages = with pkgs; [
inputs.hyprwm-contrib.grimblast
swww
# hyprslurp
# hyprpicker
firefox
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d0d1900

Please sign in to comment.