I wrote a small Bash script so that the image in the folder becomes the wallpaper:
for f in *.jpg
do
gsettings set org.gnome.desktop.background picture-uri file:$f
The error is:
./wall.sh: line 6: syntax error: unexpected end of file
Is my code wrong? And is there a way to set wallpapers from the Internet using a Bash script?