refactor(hm/price): better handle swww wallpaper failures
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled

This commit is contained in:
Price Hiller 2024-07-10 03:20:22 -05:00
parent dfa925f872
commit 7dab6acb93
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -521,10 +521,10 @@ in
let
wallpaper-dir = "${dotsDir}/.local/share/wallpapers";
in
[
"${pkgs.swww}/bin/swww img -t random ${wallpaper-dir}/Nebula.jpg"
"${pkgs.swww}/bin/swww img -t wipe --transition-angle 40 -o eDP-1 ${wallpaper-dir}/Autumn-Leaves.jpg"
];
pkgs.writeShellScript "swww-init-wallpapers" ''
"${pkgs.swww}/bin/swww img -t random ${wallpaper-dir}/Nebula.jpg" || true
"${pkgs.swww}/bin/swww img -t wipe --transition-angle 40 -o eDP-1 ${wallpaper-dir}/Autumn-Leaves.jpg" || true
'';
};
Install.WantedBy = [ "swww-daemon.service" ];
Unit = {