Skip to content

statox/NWotD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nasa Wallpaper of the Day 🚀

Set the Nasa Picture of the Day as your wallpaper and zoom background!

Requirements

This script is made to run on linux. Tested only on Ubuntu >= 22.04 with i3wm >= 4.20.1

  • feh Used to set up the desktop wallpaper. For now this is only tested on i3, for Gnome man feh recommends using gsettings set org.gnome.desktop.background picture-uri file:https:///path instead.
  • zoom This program can change the virtual background you use on zoom
  • jq Used to parse the APOD API output. Could probably be replaced by a simple regex but eh 🤷

Installation

  1. Clone the repo and run the post-install.sh script. The script will add a line to the current user's crontab to run NWotD every hour.
  2. Change the config in index.sh
    1. WALLPAPER_DIR must be an existing directory. Last downloaded wallpapers are stored there.
    2. ZOOM_BACKGROUND_PATH is the path to the virtual background file in zoom. You need to set a virtual background through the application first to create the image with a random name. Use this random name in the variable.

Startup configuration

With i3 you can configure the script to run on start up by adding the following line in your $HOME/.config/i3/config file:

exec_always --no-startup-id /path/to/NWotD/index.sh >> /var/log/nwotd.log 2>&1

Usage

The script supports some parameter to tweak its actions:

  • -z (no zoom) prevents changing the zoom wallpaper
  • -w (no wallpaper) prevents changing the desktop wallpaper

About

Nasa Wallpaper of the Day

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages