Updates
This commit is contained in:
parent
442f8bed08
commit
379087dac1
|
@ -33,10 +33,21 @@ fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
# Copy default wallpaper to .cache
|
# Copy default wallpaper files to .cache
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
if [ ! -f ~/.cache/current_wallpaper.jpg ]; then
|
|
||||||
cp wallpapers/default.jpg ~/.cache/current_wallpaper.jpg
|
# Cache file for holding the current wallpaper
|
||||||
echo "Default wallpaper installed."
|
cache_file="$HOME/.cache/current_wallpaper"
|
||||||
echo ""
|
rasi_file="$HOME/.cache/current_wallpaper.rasi"
|
||||||
|
|
||||||
|
# Create cache file if not exists
|
||||||
|
if [ ! -f $cache_file ] ;then
|
||||||
|
touch $cache_file
|
||||||
|
echo "$HOME/wallpaper/default.jpg" > "$cache_file"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create rasi file if not exists
|
||||||
|
if [ ! -f $rasi_file ] ;then
|
||||||
|
touch $rasi_file
|
||||||
|
echo "* { current-image: url(\"$HOME/wallpaper/default.jpg\", height); }" > "$rasi_file"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user