Move bg link to ~/.local/share/

often the ~/.cache directory is deleted because it gets too big, in my case if i compile stuff with yay, firefoxs chace also gets quite big, and mesa shaders are also stored there.
This commit is contained in:
Hekuran 2020-04-08 13:43:51 +02:00 committed by GitHub
parent 2d8fe0c738
commit 8029656b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
# If wal is installed, also generate a colorscheme.
# Location of link to wallpaper link.
bgloc="${XDG_CACHE_HOME:-$HOME/.cache/}/bg"
bgloc="${XDG_DATA_HOME:-$HOME/.local/share/}/bg"
[ -f "$1" ] && ln -sf "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing wallpaper..."