CVS domivogt: * New command ModuleListenOnly.

2006-06-24 Thread FVWM CVS
CVSROOT:/home/cvs/fvwm Module name:fvwm Changes by: domivogt06/06/24 06:52:13 Modified files: . : ChangeLog NEWS fvwm : builtins.c commands.h functable.c fvwm.1.in module_interface.c

ModuleListenOnly command

2006-06-24 Thread Dominik Vogt
I have just checked in the new command ModuleListenOnly. It works like Module, but fvwm does not send any messages to such a module. I am using it to attach a shell script to the module interface that periodically updates titles of FvwmButtons to display a clock (in the format I prefer, xclock

Re: CVS domivogt: * New command ModuleListenOnly.

2006-06-24 Thread Mikhael Goikhman
On 24 Jun 2006 06:52:13 -0500, FVWM CVS wrote: Changes by: domivogt06/06/24 06:52:13 Modified files: modules/FvwmPerl: FvwmPerl.1 This man page (like several others) is generated from FvwmPerl.in by make _FvwmPerl.1. Any changes done to FvwmPerl.1 will be lost. Regards,

Re: ModuleListenOnly command

2006-06-24 Thread Mikhael Goikhman
On 24 Jun 2006 13:58:30 +0200, Dominik Vogt wrote: I have just checked in the new command ModuleListenOnly. It works like Module, but fvwm does not send any messages to such a module. I am using it to attach a shell script to the module interface that periodically updates titles of

Re: CVS domivogt: * New command ModuleListenOnly.

2006-06-24 Thread Dominik Vogt
On Sat, Jun 24, 2006 at 01:23:11PM +, Mikhael Goikhman wrote: On 24 Jun 2006 06:52:13 -0500, FVWM CVS wrote: Changes by: domivogt06/06/24 06:52:13 Modified files: modules/FvwmPerl: FvwmPerl.1 This man page (like several others) is generated from FvwmPerl.in by

Re: ModuleListenOnly command

2006-06-24 Thread Dominik Vogt
On Sat, Jun 24, 2006 at 02:08:43PM +, Mikhael Goikhman wrote: On 24 Jun 2006 13:58:30 +0200, Dominik Vogt wrote: I have just checked in the new command ModuleListenOnly. It works like Module, but fvwm does not send any messages to such a module. I am using it to attach a shell

Re: CVS domivogt: * New command ModuleListenOnly.

2006-06-24 Thread Mikhael Goikhman
On 24 Jun 2006 16:15:16 +0200, Dominik Vogt wrote: Yes, I changed it in the source when I noticed my mistake but wasn't aware the man page is in CVS. It is generally bad to have generated files in cvs. But just like with our manually generated lex/yacc files in FvwmScript, it is better not to

Re: ModuleListenOnly command

2006-06-24 Thread Scott Smedley
Hi Dominik Mikhael, 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

Re: ModuleListenOnly command

2006-06-24 Thread Scott Smedley
+ I PipeRead 'str=$(/bin/ps -A --format %C %P %c | sort -n -r | tail -n1) Sorry, that should be 'head', of course. (or drop the '-r' flag on 'sort'.) SCoTT. :)

Re: ModuleListenOnly command

2006-06-24 Thread Dominik Vogt
On Sun, Jun 25, 2006 at 03:22:57AM +1000, Scott Smedley wrote: 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

Re: ModuleListenOnly command

2006-06-24 Thread Tavis Ormandy
On Sun, Jun 25, 2006 at 03:22:57AM +1000, Scott Smedley wrote: Why use a module for something so simple? AddToFunc MyPeriodicFunc + I PipeRead 'echo SendToModule FvwmButtons ChangeButton clock Title $(date +%R %a %d.%m.)' + I PipeRead 'str=$(/bin/ps -A --format %C %P %c | sort -n -r |

Re: ModuleListenOnly command

2006-06-24 Thread Mikhael Goikhman
On 24 Jun 2006 16:35:21 +0200, Dominik Vogt wrote: On Sat, Jun 24, 2006 at 02:08:43PM +, 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

Re: ModuleListenOnly command

2006-06-24 Thread seventh guardian
On 6/24/06, Mikhael Goikhman [EMAIL PROTECTED] wrote: On 24 Jun 2006 16:35:21 +0200, Dominik Vogt wrote: On Sat, Jun 24, 2006 at 02:08:43PM +, 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

Re: ModuleListenOnly command

2006-06-24 Thread Thomas Adam
On Sat, Jun 24, 2006 at 10:09:03PM +0100, seventh guardian wrote: Can we release a 2.6.0-rc1 and move on? Then while some would maintain it until a real 2.6.0, some would be working on 2.7. For the volunteers it's a matter of deciding to either help on perfecting 2.6.0 or on improving 2.7.0.

Re: ModuleListenOnly command

2006-06-24 Thread seventh guardian
On 6/24/06, Thomas Adam [EMAIL PROTECTED] wrote: On Sat, Jun 24, 2006 at 10:09:03PM +0100, seventh guardian wrote: Can we release a 2.6.0-rc1 and move on? Then while some would maintain it until a real 2.6.0, some would be working on 2.7. For the volunteers it's a matter of deciding to either