diff --git a/dotfiles/lib/bin/rofi_wallpaper.sh b/dotfiles/lib/bin/rofi_wallpaper.sh index 9b86b5ba..2079b977 100755 --- a/dotfiles/lib/bin/rofi_wallpaper.sh +++ b/dotfiles/lib/bin/rofi_wallpaper.sh @@ -1,3 +1,3 @@ #!/usr/bin/env zsh -find ~/Pictures/wallpaper/use -type l | rofi -dmenu | xargs wallpaper.sh +find ~/Pictures/wallpaper/use -type f -or -type l | rofi -dmenu | xargs wallpaper.sh diff --git a/dotfiles/lib/shellenv/wallpaper.sh b/dotfiles/lib/shellenv/wallpaper.sh index 4fee312b..708a27a4 100644 --- a/dotfiles/lib/shellenv/wallpaper.sh +++ b/dotfiles/lib/shellenv/wallpaper.sh @@ -1,7 +1,7 @@ WALLPAPER_DIR="$HOME/Pictures/wallpaper/" random_paper() { - find "$WALLPAPER_DIR"use -type l | shuf -n1 + find "$WALLPAPER_DIR"use -type f -or -type l | shuf -n1 } wallpaper() {