run swww-daemon on graphical.target
This commit is contained in:
parent
3dcc6dfdf3
commit
928fa4d2ca
3 changed files with 16 additions and 1 deletions
|
@ -6,5 +6,6 @@
|
|||
./kanshi.nix
|
||||
./swayidle.nix
|
||||
./swaylock.nix
|
||||
./swww.nix
|
||||
];
|
||||
}
|
||||
|
|
15
home/wm/addon/swww.nix
Normal file
15
home/wm/addon/swww.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
systemd.user.services.swww-daemon = {
|
||||
Unit = {
|
||||
Description = "Solution for Wayland Wallpaper Woes";
|
||||
Documentation = "https://github.com/LGFae/swww";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
||||
Restart = "on-failure";
|
||||
KillMode = "mixed";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -16,6 +16,5 @@ random_paper() {
|
|||
fi
|
||||
}
|
||||
|
||||
swww query || swww init
|
||||
convert "$(random_paper)" /tmp/wallpaper.jpg && swww img --transition-step 2 --transition-type random --transition-duration 1 "/tmp/wallpaper.jpg"
|
||||
|
||||
|
|
Loading…
Reference in a new issue