nwg-piotr / nwg-wrapper

Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors
MIT License
139 stars 8 forks source link

I need to sleep 1 #19

Open bhepple opened 2 years ago

bhepple commented 2 years ago

I've found that if I 'sleep 0.5' after nwg-wrapper and before running swaylock/gtklock, it doesn't always display correctly. Increasing the sleep to 1 second fixes it. I daresay this depends on the CPU speed etc, but it might be a good idea to document it in the README

nwg-piotr commented 2 years ago

Feel free to submit PRs. I wrote this script on demand, but I use it hardly ever.

bhepple commented 2 years ago

Hmmm - it seems 1s was not enough. Nor 1.5s

I will try to narrow it down a bit more.