Display "Loading..." while stuff is done in the background #3227
Unanswered
donutheist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a script called
system-updates.pythat checks for system updates on a number of platforms.brewtakes a while to load so when I first load the script, there's no output while brew is doing its thing. My goal is for there to be a placeholder that says "Loading..." while brew works in the background and when brew has finished, we have the actual desired output.I have read that I want to use
custom/ipcwith hooks but also read hooks are deprecated. Can someone point me to a working example?SOLUTION
Explanation
initial = 2tells the module to executehook-1as the first hook.hook-1executes the script and puts it in the background.polybar-msgto executehook-0, which sets the content to the loading text.labelis%output%, the script output will replace loading text once the test completes.Beta Was this translation helpful? Give feedback.
All reactions