added automatic wallpaper setting

This commit is contained in:
2026-07-05 16:08:32 -05:00
parent cded37b1bd
commit bf1053c4a7
4 changed files with 118 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
{ config, pkgs, ... }:
let
wallpaperWatch = pkgs.writeShellScriptBin "wallpaper-watch"
(builtins.readFile ../scripts/wallpaper-watch.sh);
in
{
home.packages = [
wallpaperWatch
];
systemd.user.services.wallpaper-watcher = {
Unit = {
Description = "Dynamic wallpaper watcher";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${wallpaperWatch}/bin/wallpaper-watch";
Restart = "always";
RestartSec = 2;
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}