feat: apod timer changes
This commit is contained in:
parent
07e7d2e047
commit
a7c9e90046
3 changed files with 10 additions and 8 deletions
|
|
@ -292,6 +292,7 @@ in
|
|||
Description = "Fetch NASA APOD wallpaper";
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
X-RestartIfChanged = false;
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
|
|
@ -304,9 +305,9 @@ in
|
|||
systemd.user.timers.nasa-apod-wallpaper = {
|
||||
Unit.Description = "Refresh NASA APOD wallpaper regularly";
|
||||
Timer = {
|
||||
OnStartupSec = "2m";
|
||||
OnCalendar = "hourly";
|
||||
Persistent = true;
|
||||
OnActiveSec = "2m";
|
||||
OnUnitActiveSec = "1h";
|
||||
Persistent = false;
|
||||
Unit = "nasa-apod-wallpaper.service";
|
||||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue