Add check for background file

This commit is contained in:
Przemek Grondek 2020-07-30 11:42:50 +02:00 committed by GitHub
parent 3be013e7e7
commit b7f30ed60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,11 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
compton &
redshift &
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
if test -f /usr/share/backgrounds/gnome/Road.jpg ; then
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
else if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then
feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg &
fi
fi
if command -v nextcloud &> /dev/null ; then