set -e
-WALL_FILE=~/wallpaper.txt
-
BG_COLOR='#b2b2a0'
-BG_IMAGE=$(< "$WALL_FILE")
+BG_IMAGE=$(< "$FILE_WALLPAPER_CURR")
#xsetroot -solid "$BG_COLOR"
hsetroot -solid "$BG_COLOR" # Because xsetroot is incompatible with compton.
set -e
-FAVS_FILE=~/fav-wallpapers.txt
-
-awk 'NR == 2 {sub("^" $1 " +" $2 " +" $3 " +", ""); print}' ~/.fehbg | xargs sha256sum >> "$FAVS_FILE"
-sort -u "$FAVS_FILE" | sponge "$FAVS_FILE"
+awk 'NR == 2 {sub("^" $1 " +" $2 " +" $3 " +", ""); print}' ~/.fehbg | xargs sha256sum >> "$FILE_WALLPAPER_FAVS"
+sort -u "$FILE_WALLPAPER_FAVS" | sponge "$FILE_WALLPAPER_FAVS"
set -euo pipefail
-WALL_FILE=~/wallpaper.txt
-FAVS_FILE=~/wallpaper_favs.txt # TODO Centralize in lib/vars
-
-sort -k 2 "$FAVS_FILE" | khomenu -l 50 | awk '{sub("^" $1 " +", ""); print}' > "$WALL_FILE"
+sort -k 2 "$FILE_WALLPAPER_FAVS" | khomenu -l 50 | awk '{sub("^" $1 " +", ""); print}' > "$FILE_WALLPAPER_CURR"
~/.xlaunch.d/background
### FILEs ###
export FILE_LOG_MPD="$DIR_LOG_MPD/mpd.log"
export FILE_VIDEO_CATALOG="$DIR_VIDEO/catalog"
+export FILE_WALLPAPER_CURR="$HOME/wallpaper_curr.txt"
+export FILE_WALLPAPER_FAVS="$HOME/wallpaper_favs.txt"
# .Net Core
#DOTNET_ROOT_path=$(which dotnet)