From c1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188 Mon Sep 17 00:00:00 2001 From: Hekuran <62762955+narukeh@users.noreply.github.com> Date: Wed, 8 Apr 2020 16:16:59 +0200 Subject: [PATCH] Move bg link to ~/.local/share/ (#545) * 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. * added a symlink to .config/wall.png * removed the .cache dir --- .cache/bg | 1 - .local/bin/setbg | 2 +- .local/share/bg | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 120000 .cache/bg create mode 120000 .local/share/bg diff --git a/.cache/bg b/.cache/bg deleted file mode 120000 index 787af6f..0000000 --- a/.cache/bg +++ /dev/null @@ -1 +0,0 @@ -../.config/wall.png \ No newline at end of file diff --git a/.local/bin/setbg b/.local/bin/setbg index 7b07e23..8269378 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -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..." diff --git a/.local/share/bg b/.local/share/bg new file mode 120000 index 0000000..6c5d299 --- /dev/null +++ b/.local/share/bg @@ -0,0 +1 @@ +../../.config/wall.png \ No newline at end of file