Save smart_crop_mode in the image filename, this way we can save one image for each mode
This commit is contained in:
parent
cfba9efae4
commit
9ace25a78c
6
fetch.sh
6
fetch.sh
|
@ -436,8 +436,12 @@ if [ $images == "on" ]; then
|
||||||
[ $wall == "on" ] && \
|
[ $wall == "on" ] && \
|
||||||
img=$(awk '/feh/ {printf $3}' "$HOME/.fehbg" | sed -e "s/'//g")
|
img=$(awk '/feh/ {printf $3}' "$HOME/.fehbg" | sed -e "s/'//g")
|
||||||
|
|
||||||
# Get name of image and prefix it with it's crop offset
|
# Get name of image and prefix it with it's crop offset or smart_crop mode
|
||||||
|
if [ $smart_crop == "on" ]; then
|
||||||
|
imgname="$smart_crop_mode-${img##*/}"
|
||||||
|
else
|
||||||
imgname="$crop_offset-${img##*/}"
|
imgname="$crop_offset-${img##*/}"
|
||||||
|
fi
|
||||||
|
|
||||||
# This check allows you to resize the image at launch
|
# This check allows you to resize the image at launch
|
||||||
if [ -f "$imgtempdir/$imgname" ]; then
|
if [ -f "$imgtempdir/$imgname" ]; then
|
||||||
|
|
Reference in New Issue