#!/bin/bash

DIR=~/Pictures/wallpapers/
PICS=($(find ${DIR} -type f -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg"))

RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]}]}
"$HOME/.local/bin/wallpaper" "$RANDOMPICS"
swww img "$HOME/.cache/images/wallpaper.png" --transition-fps 60 --transition-type any --transition-duration 3


notify-send -i ${DIR}/${RANDOMPICS} "Wallpaper Changed" ${RANDOMPICS}
