Regenerated
This commit is contained in:
+303
-290
File diff suppressed because it is too large
Load Diff
+15
-2
@@ -2392,12 +2392,25 @@ in
|
|||||||
serviceConfig.Restart = "on-failure";
|
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 = {
|
systemd.user.timers.wallpaperUpdaterTimer = {
|
||||||
description = "Run wallpaperUpdater service every 15 minutes";
|
description = "Run wallpaperUpdater service every 15 minutes";
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnUnitActiveSec = "15min";
|
timerConfig.OnUnitActiveSec = "15min";
|
||||||
timerConfig.Persistent = true;
|
timerConfig.Persistent = true;
|
||||||
unit = "wallpaperUpdater.service";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -41,11 +41,24 @@ in
|
|||||||
serviceConfig.Restart = "on-failure";
|
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 = {
|
systemd.user.timers.wallpaperUpdaterTimer = {
|
||||||
description = "Run wallpaperUpdater service every 15 minutes";
|
description = "Run wallpaperUpdater service every 15 minutes";
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnUnitActiveSec = "15min";
|
timerConfig.OnUnitActiveSec = "15min";
|
||||||
timerConfig.Persistent = true;
|
timerConfig.Persistent = true;
|
||||||
unit = "wallpaperUpdater.service";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user