Regenerated
This commit is contained in:
@@ -41,11 +41,24 @@ in
|
||||
serviceConfig.Restart = "on-failure";
|
||||
};
|
||||
|
||||
systemd.user.services.wallpaperUpdaterTimer = {
|
||||
description = "Copy changed wallpapers and set them per workspace";
|
||||
after = [ "network.target" ];
|
||||
|
||||
serviceConfig.Type = "oneshot";
|
||||
serviceConfig.ExecStart = ''
|
||||
mkdir -p ${wallpaperDst}
|
||||
rsync -au --chmod=ugo+rx ${flakeRoot}/assets/traveldroid/Wallpapers/ ${wallpaperDst}/
|
||||
chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh
|
||||
${wallpaperDst}/set-wallpapers-per-workspace.sh
|
||||
'';
|
||||
serviceConfig.Restart = "on-failure";
|
||||
};
|
||||
|
||||
systemd.user.timers.wallpaperUpdaterTimer = {
|
||||
description = "Run wallpaperUpdater service every 15 minutes";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnUnitActiveSec = "15min";
|
||||
timerConfig.Persistent = true;
|
||||
unit = "wallpaperUpdater.service";
|
||||
wantedBy = [ "timers.target" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user