Centralize wallpaper-related filenames in lib/login_variables.sh
[khome.git] / home / bin / wallpaper_fav
index e2de403..702cd9f 100755 (executable)
@@ -2,7 +2,5 @@
 
 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"
This page took 0.029274 seconds and 4 git commands to generate.