about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-06 12:22:33 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-06 12:22:33 +0200
commitef51da1b3f9a13e5b976fa943ffe7b67b91ad3e1 (patch)
treecb8f63391fdd8f967f5b3e946604609530d75b5c
parentAdded video support as well as compositor support for gifs and video (diff)
downloadsmart-wallpaper-ef51da1b3f9a13e5b976fa943ffe7b67b91ad3e1.tar.gz
smart-wallpaper-ef51da1b3f9a13e5b976fa943ffe7b67b91ad3e1.tar.bz2
smart-wallpaper-ef51da1b3f9a13e5b976fa943ffe7b67b91ad3e1.zip
Fixed [] expansion
-rwxr-xr-xsmart-wallpaper2
1 files changed, 1 insertions, 1 deletions
diff --git a/smart-wallpaper b/smart-wallpaper
index c76228d..8ad06ac 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -56,7 +56,7 @@ set_wallpaper() {
     if [ -f /usr/bin/gifview ] && [[ $1 == *".gif" ]]; then
       gifsicle --resize $resolution $1 | gifview --animate -w root &
       procid=$!
-    elif [ -f /usr/bin/mpv] && [[ $1 == *".mp4" ]] || [[ $1 == *".mov" ]] || [[ $1 == *".avi" ]] || [[ $1 == *".wav" ]]; then
+    elif [ -f /usr/bin/mpv ] && [[ $1 == *".mp4" ]] || [[ $1 == *".mov" ]] || [[ $1 == *".avi" ]] || [[ $1 == *".wav" ]]; then
       mpv --fullscreen --on-all-workspaces --no-config --no-input-default-bindings --no-stop-screensaver --loop-file --no-audio --no-osc --no-osd-bar -wid 0 --quiet $1 &
       procid=$!
     else