From 20c3e2c86fae72d09020dbdcfdb7be69a9d30894 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 24 Feb 2017 21:31:27 -0800 Subject: [PATCH] [Linux] Allow nob symlink wallpapers --- dotfiles/lib/bin/rofi_wallpaper.sh | 2 +- dotfiles/lib/shellenv/wallpaper.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {