#!/bin/bash WALLPAPER_DIR="$HOME/Pictures/Wallpapers/walls" #I dont know what the fuck I am doing menu() { find "${WALLPAPER_DIR}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) | awk '{print "img:"$0}' } main() { choice=$(menu | wofi -c ~/.config/wofi/wallpaper -s ~/.config/wofi/style-wallpaper.css --show dmenu --prompt "Select Wallpaper:" -n) selected_wallpaper=$(echo "$choice" | sed 's/^img://') swww img "$selected_wallpaper" --transition-type any --transition-fps 60 --transition-duration .5 wal -i "$selected_wallpaper" -n --cols16 -e pywalfox update source ~/.cache/wal/colors.sh && cp -r $wallpaper ~/Pictures/Wallpapers/pywallpaper.jpg } main