This one simply prompts the user to put symbolic links into a folder for use as wallpapers, to take advantage of the randomly changing backgrounds option in Desktop Settings.
I hope others enjoy it. Not a huge learning curve.
Code: Select all
#!/bin/bash
# uses arithmetic... echo "$(($a + 1))"
clear
linkfolder='/path/to/folder/'
echo "enter the number of the last symbolic link in the $linkfolder folder"
read lastnum
echo "The number you entered is $lastnum"
i="$(($lastnum + 1))"
echo "The next symbolic link will be number $i"
echo "How many wallpaper symbolic links do you want to make?"
read numlinks
echo "You entered $numlinks"
j="$(($i + $numlinks))"
echo "The number of the last link you make will be $(($j))"
####################################### loop ###########################################
while [ $i -lt $j ]
do
echo "enter the path to image $i"
read path2image
echo "making symbolic link..."
ln -s "$path2image" "$linkfolder/$i"
echo "Symbolic link made. Verify if tihs is the first time running this script."
((++i))
done
#################################### end loop #######################################