vilhalmer / oguri

A very nice animated wallpaper daemon for Wayland compositors
MIT License
276 stars 4 forks source link

Flickering between image change when used as swaybg #25

Closed rhysperry111 closed 4 years ago

rhysperry111 commented 4 years ago

Hi, sorry to create two issues in one day. Now that the previous one was fixed I have found this one.

Basically, when integrated with sway the background seems to flicker in between image changes. The reason I had switched to oguri was because I was led to believe (while reading about this exact same problem with swaybg) that oguri would not flicker.

Is this something that can easily fixed?

rhysperry111 commented 4 years ago

I believe this is related to #3

vilhalmer commented 4 years ago

If you use oguri-swaybg, you have the same limitations as the real swaybg. If you want to avoid the flickering, you have to exec oguri yourself and use ogurictl to change the image.

vilhalmer commented 4 years ago

It's worth nothing that all of this will be documented before I release 1.0. I may also eliminate oguri-swaybg entirely given the limitations.

rhysperry111 commented 4 years ago

Ok, thank you. I am going to have to modify my PR of https://github.com/adi1090x/battery-wallpaper as it is based on swaybg (I did not know of this limitation when I wrote it.

vilhalmer commented 4 years ago

It would be possible to rewrite oguri-swaybg to call ogurictl but since you would still have to run oguri separately I don't think it's worth it.

vilhalmer commented 4 years ago

I would accept a PR doing so though!