summaryrefslogtreecommitdiff
path: root/wallpapertrans.sh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-06-20 01:04:36 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-06-20 01:04:36 +0800
commitea79ffef6e18f74fd995d665a46b84abc5299c52 (patch)
tree2aed04d2bcf8b6aa2b8a6d13c0440465b54a3a18 /wallpapertrans.sh
parent71f4a9f1b5a53cdcb239dd28ab3a6f1eacc4fe76 (diff)
updates
Diffstat (limited to 'wallpapertrans.sh')
-rwxr-xr-xwallpapertrans.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/wallpapertrans.sh b/wallpapertrans.sh
index a5b0b65..c71a3cf 100755
--- a/wallpapertrans.sh
+++ b/wallpapertrans.sh
@@ -3,6 +3,7 @@
feh --bg-fill $XDG_CACHE_HOME/wallpaper/old.jpg
DISPLAY=:0
+XDG_PICTURES_DIR="${XDG_PICTURES_DIR:-$HOME/Pictures}"
WALLPAPERS="$XDG_PICTURES_DIR/wallpapers/"
wallpappath=$(find "$WALLPAPERS" | shuf -n 1)
cp "$wallpappath" $XDG_CACHE_HOME/wallpaper/old.jpg