geeseven / sway-nasa-apod

Sway Nasa Astronomy Picture of the Day background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sway Nasa Astronomy Picture of the Day background

This script sets your Sway background to Nasa's Astronomy Picture of the Day.

usage:

$ /path/to/sway-nasa-apod/nasa-apod.sh --help
Usage: nasa-apod.sh [-h] [-r]

set Sway background to Nasa Astronomy Picture of the Day

optional arguments:
  -h, --help            show this help message and exit
  -r, --monrad          pick random day from the archive, url saved to /path/to/sway-nasa-apod//last_random_url

Depending on your needs, you will want to configure the script to run at startup or set up a cronjob or systemd timer. Personally, I set a systemtd timer for 06:00 UTC and have the following in my Sway configuration file:

output * background /path/to/sway-nasa-apod/nasa-apod.jpg center #323232

About

Sway Nasa Astronomy Picture of the Day background

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%