dotfiles

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

commit 2754f6406580c555ac93e5e2ffc76bffcc67cc9b
parent ee2f8e93021dc70642eb258f7d28744526141f54
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 26 Mar 2020 11:37:07 -0400

setbg dir fix

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"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." +[ -d "$1" ] && mv "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.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