dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9e4cfc127d33980d4e037d17fc3abb439d7363b3
parent db46b82f7f0fe7d8bb76246e1e4b9947f4187012
Author: mhdzli <50514359+mhdzli@users.noreply.github.com>
Date:   Mon, 16 Mar 2020 04:22:24 +0330

Just find pictures (#499)

Filter the pictures in directory by file extensions
Diffstat:
M.local/bin/setbg | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/setbg b/.local/bin/setbg @@ -10,7 +10,7 @@ [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." -[ -d "$1" ] && mv "$(find "$1" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." +[ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. type wal >/dev/null 2>&1 && { wal -c ;