Create a daily job to download the NASA Astronomy Picture of the Day
This commit is contained in:
parent
1b03164a31
commit
f5eb2ff1ac
2 changed files with 20 additions and 0 deletions
10
.config/systemd/user/get-nasa-apod.service
Normal file
10
.config/systemd/user/get-nasa-apod.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Refresh the wallpaper using the NASA Astronomy Picture of the Day
|
||||
Wants=get-nasa-apod.timer
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=%h
|
||||
ExecStart=%h/.local/bin/get-nasa-apod
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
10
.config/systemd/user/get-nasa-apod.timer
Normal file
10
.config/systemd/user/get-nasa-apod.timer
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Daily NASA wallpaper fetch
|
||||
Requires=get-nasa-apod.service
|
||||
|
||||
[Timer]
|
||||
Unit=nasa-apod.service
|
||||
OnCalendar=daily
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue