On 17/08/2014 12:37, Dominik Vogt wrote:
By the way, I've been using the module interface for a similar
task. One of the buttons in FvwmButtons displays the time and
date, another one current memory usage and a third one the top
cpu using process. This is updated every fifteen seconds.
Because I don't like processes (FvwmCommand) to be started all the
time I wrote the ModuleListenOnly fvwm command and implemented the
module as a zsh script (attached). Note that the module interface
uses the "long" C type, and the script is written for systems
where sizeof(long) is four. It needs to be adapted of eight byte
longs, i.e. 64-bit systems.
The command to start the script is
+ I ModuleListenOnly fvwm_periodic -u 15 -d 3 -c clock -t topproc -M mempct
in the InitFunction and the RestartFunction. The ModuleListenOnly
allows to write one way modules. They can send packets to fvwm,
but fvwm does not send them any packets.
Ciao
Dominik ^_^ ^_^
This looks great Dominik! I'll try it out if that's ok. I like to be
able to see this data in the window manager.