diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-03-26 11:37:07 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-03-26 11:37:07 -0400 |
| commit | 2754f6406580c555ac93e5e2ffc76bffcc67cc9b (patch) | |
| tree | 53e3888af096ecacfa5657ed03b54133e46848e7 /.local/bin/setbg | |
| parent | ee2f8e93021dc70642eb258f7d28744526141f54 (diff) | |
| download | eibhear-2754f6406580c555ac93e5e2ffc76bffcc67cc9b.tar.gz eibhear-2754f6406580c555ac93e5e2ffc76bffcc67cc9b.tar.zst eibhear-2754f6406580c555ac93e5e2ffc76bffcc67cc9b.zip | |
setbg dir fix
Diffstat (limited to '.local/bin/setbg')
| -rwxr-xr-x | .local/bin/setbg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/setbg b/.local/bin/setbg index e7775ca..dacd466 100755 --- 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 |
