![]() Has the advantage that the color value of a selected list item can be sent to stdout (in gtkdialog there is no pango capable list/tree widget) I'm using gtkdialog, but I figured that yad may also be a suitable GUI.Įxperimenting with my version 0.36.2 it appears that only the yad List option is suitable. In this thread I'm playing around with "simple" colors. In these cases I typically bundle the scripts together as a Rox AppDir (or you could use a portable bundle, such as an AppImage). The disadvantage of using gtkdialog (or even a separate bash process) to tick the timer outside your main yad GUI process is that you will need to distribute two separate scripts for a single application. You could replace yad altogether with gtkdialog or keep gtkdialog and yad separate, each running in its own process. So, basically you can use gtkdialog as an equivalent of while true do echo "wake up, do something" sleep 60l done. You can associate any shell command to run when the timer expires (in a loop if necessary). Look at the "timer_advanced" sample script under /usr/share/doc/gtkdialog/examples/timer (also available in woof-CE on github). And in puppyland where can one easily get a programmable timer with shell actions? The gtkdialog timer widget is an answer. In either case you may be able to think of your script as an action connected to a non-expiring timer. ![]() I'm not sure how your yad script works - if it's supposed to run only once while multiple timeouts take place, or if it's a main loop that runs yad then "sleeps" then run yads. While the bash process is reading, it's essentially off the kernel scheduler, so technically bolt's idea is not-busy-waiting as it can get. But I read the stackexchange you posted, and it seems to me that bolt's blog post can be studied and an ingenious solution be found in it. It's a general shell programming question that would probably get more reads (answers) in a dedicated thread. ![]() So it seems you want to avoid busy waiting in your script? This question isn't strictly about yad.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |