diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-08-03 00:18:32 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-08-03 00:18:32 +0200 |
commit | 65920c57710177a9832fcfc76411eb2853e5486c (patch) | |
tree | d0fc4acf81714fb145723368dabd01b41ab8b001 | |
parent | Mini-refractored code (diff) | |
download | smart-wallpaper-65920c57710177a9832fcfc76411eb2853e5486c.tar.gz smart-wallpaper-65920c57710177a9832fcfc76411eb2853e5486c.tar.bz2 smart-wallpaper-65920c57710177a9832fcfc76411eb2853e5486c.zip |
Fixed gif resolution
-rwxr-xr-x | smart-wallpaper | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smart-wallpaper b/smart-wallpaper index 10f14e5..9ec7aae 100755 --- a/smart-wallpaper +++ b/smart-wallpaper @@ -3,6 +3,7 @@ trap cleanup EXIT period=500 +resolution=$(xdpyinfo | awk '/dimensions/{print $2}') input_daytimewallpaper='' input_nighttimewallpaper='' @@ -37,7 +38,7 @@ set_wallpaper() { fi if [[ $1 == *".gif" ]] && [ -f /usr/bin/gifview ]; then - gifview --animate -w root $1 & + gifsicle --resize $resolution $1 | gifview --animate -w root & procid=$! else feh --bg-fill $1 |