summaryrefslogtreecommitdiff
path: root/wallpapertrans.sh
diff options
context:
space:
mode:
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