about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsmart-wallpaper7
1 files changed, 4 insertions, 3 deletions
diff --git a/smart-wallpaper b/smart-wallpaper
index ded197a..273d722 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -16,10 +16,11 @@ print_usage() {
 }
 
 set_wallpaper() {
-  #if [[ $1 == *".gif" ]]; then
-  #  mplayer
-  #else
+  if [[ $1 == *".gif" ]]; then
+    gifview --animate -w root $1
+  else
     feh --bg-fill $1
+  fi
 }
 
 if (( $# == 0 )); then