From 65920c57710177a9832fcfc76411eb2853e5486c Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sat, 3 Aug 2019 00:18:32 +0200 Subject: Fixed gif resolution --- smart-wallpaper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1