From 81ed104948d263c369ce74504aa63cf2b64814d3 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sat, 29 Jun 2019 17:47:30 +0200 Subject: Added gif support --- smart-wallpaper | 7 ++++--- 1 file 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 -- cgit 1.4.1