diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-29 17:47:30 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-29 17:47:30 +0200 |
commit | 81ed104948d263c369ce74504aa63cf2b64814d3 (patch) | |
tree | f6a9ab5b76c7d64e5e05c4dd5e0d374888df9fa2 | |
parent | Rewrite of the change wallpaper function (thinking of adding gif support (diff) | |
download | smart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.tar.gz smart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.tar.bz2 smart-wallpaper-81ed104948d263c369ce74504aa63cf2b64814d3.zip |
Added gif support
-rwxr-xr-x | smart-wallpaper | 7 |
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 |