Improve wallpaper-setting pipeline robustness
[khome.git] / home / .xlaunch.d / background
index 629c4cd..a02d34c 100755 (executable)
@@ -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
This page took 0.029878 seconds and 4 git commands to generate.