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 DISPLAY=:0.0
export XAUTHORITY=/home/powellc/.Xauthority export XAUTHORITY=/home/powellc/.Xauthority
# Choices: astrobin,natgeo,nasa,unsplash if [ -n "$1" ]; then
BASEDIR="$HOME/var/backgrounds/bing/" SOURCE=$1
SEARX_BASEDIR="$HOME/var/backgrounds/natgeo/" 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 # Get daily NatGeo POTD
python3 ~/.bin/get_natgeo_potd.py python3 ~/.bin/get_natgeo_potd.py