diff options
Diffstat (limited to 'bin/wallpaper')
| -rwxr-xr-x | bin/wallpaper | 8 |
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" |
