Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.75k stars 94 forks source link

[Question] Gif preview #492

Open myryk31415 opened 2 days ago

myryk31415 commented 2 days ago

So I am trying to my a wallpaper picker for swww and support gifs as well.

If I just use the give as Wiget.icon it throws this error: JS ERROR: GdkPixbuf.PixbufError: Not all frames of the GIF image were loaded.

I found this line in script from JaKooLit: printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${wallDIR}/${PICS[$i]}\n" output for an example gif: mygif^@icon^_/home/user/path/to/file/mygif.gif This then gets piped into rofi.

Is there anyway to get a preview or a thumbnail of the gif?

myryk31415 commented 2 days ago

regarding the line from the script, I just checked the picker again and it doesn't have a thumbnail either