should prob use cp

This commit is contained in:
Luke Smith 2020-03-27 09:53:41 -04:00
parent 2754f64065
commit 238621787f
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -10,7 +10,7 @@
[ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
[ -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." [ -d "$1" ] && cp "$(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. # If pywal is installed, use it.
type wal >/dev/null 2>&1 && { wal -c type wal >/dev/null 2>&1 && { wal -c