fix wallpaper script

This commit is contained in:
Frost-Phoenix 2023-12-07 00:16:30 +01:00
parent bcb1ff9d82
commit 6feac7c250

View file

@ -2,7 +2,7 @@
wallpaper_path=$HOME/Pictures/wallpapers
wallpapers_folder=$HOME/Pictures/wallpapers/others
wallpaper_name="$(ls $wallpapers_folder | wofi -n --show dmenu --sort-order=alphabetical)"
wallpaper_name="$(ls $wallpapers_folder | wofi --show dmenu --sort-order=alphabetical)"
if [[ -f $wallpapers_folder/$wallpaper_name ]]; then
find ~/Pictures/wallpapers -maxdepth 1 -type f -delete
cp $wallpapers_folder/$wallpaper_name $wallpaper_path/$wallpaper_name