Add parameters to changepaper.sh script

This commit is contained in:
Colin Powell
2020-02-20 13:57:55 -05:00
parent 05b80f5c89
commit 2d8739d1e8

View File

@ -9,9 +9,15 @@
export DISPLAY=:0.0
export XAUTHORITY=/home/powellc/.Xauthority
# Choices: astrobin,natgeo,nasa,unsplash
BASEDIR="$HOME/var/backgrounds/bing/"
SEARX_BASEDIR="$HOME/var/backgrounds/natgeo/"
if [ -n "$1" ]; then
SOURCE=$1
else
SOURCE='astrobin'
fi
# Choices: astrobin,natgeo,nasa,unsplash,bing
BASEDIR="$HOME/var/backgrounds/$SOURCE/"
SEARX_BASEDIR="$HOME/var/backgrounds/bing/"
# Get daily NatGeo POTD
python3 ~/.bin/get_natgeo_potd.py