|
@@ -10,7 +10,7 @@ export DISPLAY=:0.0
|
|
export XAUTHORITY=/home/powellc/.Xauthority
|
|
export XAUTHORITY=/home/powellc/.Xauthority
|
|
|
|
|
|
# Choices: astrobin,natgeo,nasa
|
|
# Choices: astrobin,natgeo,nasa
|
|
-BASEDIR="$HOME/var/backgrounds/astrobin/"
|
|
|
|
|
|
+BASEDIR="$HOME/var/backgrounds/natgeo/"
|
|
|
|
|
|
# Get daily NatGeo POTD
|
|
# Get daily NatGeo POTD
|
|
python3 ~/.bin/get_natgeo_potd.py
|
|
python3 ~/.bin/get_natgeo_potd.py
|
|
@@ -19,7 +19,7 @@ python3 ~/.bin/get_astrobin_potd.py
|
|
date=$(date '+%Y-%m-%d')
|
|
date=$(date '+%Y-%m-%d')
|
|
|
|
|
|
#set the current image as wallpaper
|
|
#set the current image as wallpaper
|
|
-feh --bg-scale $BASEDIR/$date.jpg
|
|
|
|
|
|
+hsetroot -sane $BASEDIR/$date.jpg
|
|
#link slim background to new image
|
|
#link slim background to new image
|
|
rm /usr/share/slim/themes/default/background.jpg
|
|
rm /usr/share/slim/themes/default/background.jpg
|
|
ln -s $BASEDIR/$date.jpg /usr/share/slim/themes/default/background.jpg
|
|
ln -s $BASEDIR/$date.jpg /usr/share/slim/themes/default/background.jpg
|
|
@@ -41,7 +41,7 @@ echo "Background and slim wallpaper set using Astrobin PotD"
|
|
# img_file=`echo $img | cut -d/ -f 7 | tr -d \"`
|
|
# img_file=`echo $img | cut -d/ -f 7 | tr -d \"`
|
|
# curl $img > $img_file
|
|
# curl $img > $img_file
|
|
# #set the current image as wallpaper
|
|
# #set the current image as wallpaper
|
|
-# #feh --bg-scale $BASEDIR/$img_file
|
|
|
|
|
|
+# #hsetroot -sane $BASEDIR/$img_file
|
|
# ##link slim background to new image
|
|
# ##link slim background to new image
|
|
# #rm /usr/share/slim/themes/default/background.jpg
|
|
# #rm /usr/share/slim/themes/default/background.jpg
|
|
# #ln -s $BASEDIR/$img_file /usr/share/slim/themes/default/background.jpg
|
|
# #ln -s $BASEDIR/$img_file /usr/share/slim/themes/default/background.jpg
|