# Pick a random wallpaper (ignoring anything starting with .) and set the path equal to ${wp}
WP=$(find ~/Pictures/Wallpapers -not -path '*/\.*' -type f | shuf | head -n1 )
# Generate a GTK theme/colour scheme
# Apply the colour scheme to terminals
# Set rxvt's transparency to 75%
wal -gi "$WP" -a 75
# Scale the wallpaper (fixes multi-monitor setups)
feh --bg-scale "$WP"
# Check if the wallpaper is in Favourites
echo $WP | grep "^~/Pictures/Wallpapers/Favourites" &> /dev/null && TEXT="This wallpaper is in Favourites" || TEXT="This wallpaper is not in Favourites"
# Send notification with variable defined above
notify-send "Wallpaper Changed to $WP" "$TEXT"
# Apply colours to Steam
wal_steam
# Open a zenity window and give a GUI for deciding what to do with the wallpaper
VAR=$(zenity --list --text="Decide the fate of this wallpaper" --radiolist --hide-header --column "Select" --column "Option" FALSE "Delete it" FALSE "Add to favourites" TRUE "Do nothing")
if [ "$VAR" = "Add to favourites" ]
then
cp $WP ~/Pictures/Wallpapers/Favourites
notify-send "Wallpaper has been added to your favourites!"
elif [ "$VAR" = "Delete it" ]
then
notify-send "Wallpaper has been deleted"
rm -rf $WP
else
exit
fi
```
This script can be found in my repository on [GitLab](https://gitlab.com/Amolith/dotfiles)
#### Level four header test (in which we check quoting)
> It's a dangerous business, Frodo, going out your door. You step onto the Road, and if you don't keep your feet, there's no knowing where you might be swept off to.
> You need to actively disown your code to make it completely free. It’s not in the public domain just because you released it in the public. Even worse, when using no license, the copyright might behave different depending where you and someone allegedly breaking it lives. It differs from country to country.