From b7f30ed60d9f667a187d7aaae8947d781b7a7469 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 30 Jul 2020 11:42:50 +0200 Subject: [PATCH] Add check for background file --- .xsessionrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.xsessionrc b/.xsessionrc index 3971642..6d4838e 100755 --- a/.xsessionrc +++ b/.xsessionrc @@ -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