Can Conky display an animated .GIF?

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Can Conky display an animated .GIF?

Post by Logansfury »

Hello all,

I have my conky displaying .png static pictures. Is it possible to also display an animated .gif?

Can anyone provide the code if so?

Thank you for reading,

Logan
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Can Conky display an animated .GIF?

Post by Koentje »

Nope..
But if you have the animation in separate png files you can display them every update of conky so it looks like an animation.
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Can Conky display an animated .GIF?

Post by Logansfury »

Koentje wrote: Sat Feb 24, 2024 11:00 am Nope..
But if you have the animation in separate png files you can display them every update of conky so it looks like an animation.
Thank you for the reply. The refresh rate of conky is 1 second right?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Can Conky display an animated .GIF?

Post by Koentje »

Logansfury wrote: Sat Feb 24, 2024 12:48 pm
Koentje wrote: Sat Feb 24, 2024 11:00 am Nope..
But if you have the animation in separate png files you can display them every update of conky so it looks like an animation.
Thank you for the reply. The refresh rate of conky is 1 second right?
update_interval

Example of an animation. Study it..
animation.conky.tar.gz
(739 Bytes) Downloaded 18 times
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Can Conky display an animated .GIF?

Post by Logansfury »

Koentje wrote: Sat Feb 24, 2024 4:02 pm
Logansfury wrote: Sat Feb 24, 2024 12:48 pm
Koentje wrote: Sat Feb 24, 2024 11:00 am Nope..
But if you have the animation in separate png files you can display them every update of conky so it looks like an animation.
Thank you for the reply. The refresh rate of conky is 1 second right?
update_interval

Example of an animation. Study it..

animation.conky.tar.gz
Far out! Thank you :)
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
zcot
Level 9
Level 9
Posts: 2838
Joined: Wed Oct 19, 2016 6:08 pm

Re: Can Conky display an animated .GIF?

Post by zcot »

Logansfury wrote: Sat Feb 24, 2024 12:48 pm The refresh rate of conky is 1 second right?
It's whatever you set it at. It's very common to see users setting it to 1 second since we want to see interactive changes in temp or whatever various data.

That animation example you will see:

Code: Select all

	update_interval = 0.1,
But this is a hard thing for just conky as a default. You don't want a bunch of other stuff running at those kinds of update speeds, well it just uses that much more cpu and resources, -maybe you do want that. Me, I'm quite the opposite, I typically feel good when my cpu usage percent is around 1 or 2 percent at the most, this way I figure I'm truly at an idle, so then when I need the cpu power then I know it's there and it's not going to be choked by other stuff.

In my mind the better option is not trying to do it with conky directly. I think lua will have some support for this type of stuff, animated gif support directly, and then you can run one special config just for the lua gif support and overlay it onto/next/beside another config, or wherever you are placing it, if it's even in relation to another config output.
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Can Conky display an animated .GIF?

Post by Koentje »

zcot wrote: Sat Feb 24, 2024 8:22 pm ..But this is a hard thing for just conky as a default. You don't want a bunch of other stuff running at those kinds of update speeds,..
That's why i have so many conky's. Some need a short interval, some need a long interval like counting my backups.
I'm opposed to one big conky, because you want a snappy cpu bar, but all other things in that conky also run with that short interval.
Image
Post Reply

Return to “Compiz, Conky, Docks & Widgets”