On 24 Jun 2006 16:35:21 +0200, Dominik Vogt wrote: > > On Sat, Jun 24, 2006 at 02:08:43PM +0000, Mikhael Goikhman wrote: > > > > I can't say I am very happy about this. Actually, I would not be happy > > about any new feature added without discussion before 2.6.0. :) > > Hm, I don't see that happen in the foreseeable future. Nobody is > doing anything in that direction.
But is this a reason to make this task harder? > > The problem with this solution is that in order to use it, every script > > should include non obvious parts of the module interface, and once the > > interface is changed such scripts stop to work correctly. > > Oh, but it doesn't. I don't see how what I said is not true. Unless there is fvwm-shelllib, every user script should include parts of the module interface (like function send), something that even modules in C and perl should not do. > And eventually I wasn't able to find out how to do it with > FvwmPerl by reading the man page (I'm a zsh-person, not a > Perl-person). FvwmPerl is just a specific module for embedding perl into fvwm config, it does not have an easy-to-use support for periodic commands. Of course, options like --periodic-frequency and --periodic-cmd may be easily added. Still, specialized module FvwmButtonsUpdater would be more appropriate. > > We may write a module FvwmButtonsUpdater that gets an FvwmButtons module > > name (alias) and a list of entries, each is: a button id, its update > > frequency and a shell command to invoke for title updates (for example, > > 'date +%T' or 'ps -A --format "%C %P %c" | sort -n -r | head -1'). > > > > Maybe someone will write such configurable module, useful for everybody. > > That's the idea. My script should eventually end up with its > portability issues fixed (although I don't see how all this could > be done without zsh). > > > It is not very hard after reading "fvwm-perllib man". fvwm-themes includes FvwmThemesPanelManager module that periodically updates several button titles. It uses Schedule and Deschedule commands. There is also Scheduler tracker that hides all the dealing with these fvwm commands and provides a nice API: fvwm-perllib man FVWM::Tracker::Scheduler If Schedule command is not reliable (I didn't experience this myself), then this tracker may work using internal alarm method as well (someone may possibly improve this method). Regards, Mikhael.