about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-13 15:37:53 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-13 15:37:53 +0100
commit92a5ddf3e123f57f6d45cb4b583b637bb72407a6 (patch)
treea0011d02e0f14959e3d52ccc4f4708effa3978a2
parentRemoved fullscreen optimization due to problems (diff)
downloadsmart-wallpaper-92a5ddf3e123f57f6d45cb4b583b637bb72407a6.tar.gz
smart-wallpaper-92a5ddf3e123f57f6d45cb4b583b637bb72407a6.tar.bz2
smart-wallpaper-92a5ddf3e123f57f6d45cb4b583b637bb72407a6.zip
Added mkv support
-rwxr-xr-xsmart-wallpaper4
1 files changed, 2 insertions, 2 deletions
diff --git a/smart-wallpaper b/smart-wallpaper
index e6eaef0..4076668 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -52,7 +52,7 @@ set_wallpaper() {
       echo "gifsicle --resize $resolution \$1 | gifview --animate -w \$2" > /tmp/smart-wallpaper-gifcmd
       xwinwrap -ov -ni -s -nf -un -argb -g $resolution -- sh /tmp/smart-wallpaper-gifcmd $1 WID &
       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 == *".mkv" ]]; then
       xwinwrap -ni -ov -ni -s -nf -un -argb -g $resolution -- mpv --fullscreen --on-all-workspaces --no-config --no-input-default-bindings --no-stop-screensaver --loop-file --no-audio --no-osc --no-osd-bar -wid WID --quiet $1 &
       procid=$!
     else
@@ -63,7 +63,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 == *".mkv" ]]; 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