X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xlaunch.d%2Fbackground;h=a02d34cc491abe659b611187bc85490cf313f9b6;hb=b1f2fbf1dc35cd7bd6193ce0e098780cb63ca02f;hp=629c4cd55c1b05e2f8f64d5d8d4e44f895ed087a;hpb=411d749a5958b8638675da59c5e140d9b7de2bec;p=khome.git diff --git a/home/.xlaunch.d/background b/home/.xlaunch.d/background index 629c4cd..a02d34c 100755 --- a/home/.xlaunch.d/background +++ b/home/.xlaunch.d/background @@ -2,11 +2,13 @@ set -e -WALL_FILE=~/wallpaper.txt - BG_COLOR='#b2b2a0' -BG_IMAGE=$(< "$WALL_FILE") #xsetroot -solid "$BG_COLOR" hsetroot -solid "$BG_COLOR" # Because xsetroot is incompatible with compton. -feh --bg-scale "$BG_IMAGE" + +if test -f "$FILE_WALLPAPER_CURR" +then + bg_image=$(< "$FILE_WALLPAPER_CURR") + feh --bg-scale "$bg_image" +fi