summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHekuran <62762955+narukeh@users.noreply.github.com>2020-04-08 16:16:59 +0200
committerGitHub <noreply@github.com>2020-04-08 10:16:59 -0400
commitc1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188 (patch)
treef0fe757f7a63040755838a9b63045b39e88951ee
parent2d8fe0c738e84f2a202914771e7be665718d588e (diff)
downloadeibhear-c1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188.tar.gz
eibhear-c1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188.tar.zst
eibhear-c1e2aa9ffcf1c4ee116b0495b6e8bf6ba67c5188.zip
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
l---------.cache/bg1
-rwxr-xr-x.local/bin/setbg2
l---------.local/share/bg1
3 files changed, 2 insertions, 2 deletions
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