about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-29 17:47:30 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-29 17:47:30 +0200
commit81ed104948d263c369ce74504aa63cf2b64814d3 (patch)
treef6a9ab5b76c7d64e5e05c4dd5e0d374888df9fa2
parentRewrite of the change wallpaper function (thinking of adding gif support (diff)
downloadsmart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.tar.gz
smart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.tar.bz2
smart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.zip
Added gif support
-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