aboutsummaryrefslogtreecommitdiff
path: root/bin/wallpaper
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wallpaper')
-rwxr-xr-xbin/wallpaper8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/wallpaper b/bin/wallpaper
index 09abceb..fb33c72 100755
--- a/bin/wallpaper
+++ b/bin/wallpaper
@@ -2,13 +2,13 @@
# Baseado no script do Luke Smith
-DIR="$HOME/Imagens/Wallpapers"
-WAL="~/Imagens/Wallpapers/wall.png"
+DIR="$HOME/Imagens/wallpapers"
+WAL="$DIR/wall.png"
# se o diretório existir, pegue um arquivo aleatoriamente
[ -d "$DIR" ] && IMG=$(find "$DIR"/* | shuf -n 1)
# se a imagem for diferente do wallpaper atual, copie-a
-[ "$IMG" != "$WAL" ] && cp $IMG ~/Imagens/Wallpapers/wall.png
+[ "$IMG" != "$WAL" ] && cp "$IMG" "$WAL"
-xwallpaper --stretch "$DIR"/wall.png
+xwallpaper --stretch "$WAL"