Swallow problems ( solved )

Hi all,

I have some problems with swallow.
i swallow in a main bar 3 fvwmbuttons which are swallowing 1 “xosview” each :


(_______________|X||X||X| )

(sorry but “put file” is under heavy load, can’t upload ).

so , xosview is launched 3 times.
But when i start fvwm or restart, it often miss the bar.
I think i must wait each “swallow” but :

ex :
+ I wait Module FvwmButton CpuLoad

block the StartFunction.

Here is the code :

# The main bar :
DestroyModuleConfig MyBarre :*
*MyBarre: Geometry 1010x20+7+2
*MyBarre: Columns 103
*MyBarre: Rows 1
*MyBarre: Colorset 3
*MyBarre: Frame 0
*MyBarre: (6x1,Frame 0,Icon fvwm.png, Action (Mouse 1) nop)
*MyBarre: (1x1,Action (Mouse 1) nop )
*MyBarre: (79x1, Swallow "FvwmIconMan", "Module FvwmIconMan")
*MyBarre: (1x1,Action (Mouse 1) nop )
*MyBarre: (5x1, Swallow "CpuLoad" "Module FvwmButtons CpuLoad")
*MyBarre: (5x1, Swallow "NetLoad" "Module FvwmButtons NetLoad")
*MyBarre: (5x1, Swallow "DiskLoad" "Module FvwmButtons DiskLoad")
*MyBarre: (1x1,Action (Mouse 1) nop )

# 3 FvwmButtons

DestroyModuleConfig CpuLoad:*
*CpuLoad: Frame 0
*CpuLoad: Colorset 3
*CpuLoad: Columns 1
*CpuLoad: Rows 7
*CpuLoad: Frame 0
*CpuLoad: (1x1, Action (Mouse 1) nop)
*CpuLoad: (1x5, Swallow "xosview" 'Exec xosview +cpu')
*CpuLoad: (1x1, Action (Mouse 1) nop)

###########################################################################

DestroyModuleConfig NetLoad:*
*NetLoad: Frame 0
*NetLoad: Colorset 3
*NetLoad: Columns 1
*NetLoad: Rows 7
*NetLoad: Frame 0
*NetLoad: (1x1, Action (Mouse 1) nop)
*NetLoad: (1x5, Swallow "xosview" 'Exec xosview +net')
*NetLoad: (1x1, Action (Mouse 1) nop)

###########################################################################

DestroyModuleConfig DiskLoad:*
*DiskLoad: Frame 0
*DiskLoad: Colorset 3
*DiskLoad: Columns 1
*DiskLoad: Rows 7
*DiskLoad: Frame 0
*DiskLoad: (1x1, Action (Mouse 1) nop)
*DiskLoad: (1x5, Swallow "xosview" 'Exec xosview +disk')
*DiskLoad: (1x1, Action (Mouse 1) nop)

My question is : is there a way to wait each swallow ?
Hope this is clear , sorry for my english :confused:

That’s not really what I would do. Since swallowing often relies on a unique hangon name as an identifier, you can give each of the three xosviews separate names. This is something I do myself with xosview, hence:

*CpuLoad: (1x5, Swallow "cpuload" "Exec exec xosview -name cpuload +cpu ...."

Then in that way you’re not reliant on having to ensure that all three windows with potentially the same name are swallowed. Note that in specific circumstances when it is not always possible to change the name of an application you might get away with using the SwallowNew option to the Swallow command as in:

*CpuLoad: (1x5, Swallow (SwallowNew) "xosview" "Exec exec xosview +cpu ...."

Does that make sense?

– Thomas Adam

i think someone did a mistake :

  • it must be “thomaspedia” instead of wikipedia.

as always , it’s perfect ,thx a lot.
I now understand my error.

Heh. I just help out where I can…

– Thomas Adam