Command expansion


I use an Fvwmbutton instance in which a FvwnIconman is swallowed as taskbar.

In my config I defiined variables for the EWMHBaseStruts, i.e. ShrinkTop, ShrinkRight …

My “taskbar” is positionned at the top of my screen.

To parametrize easily my display, I use extensively these variables.

In my FvwmIconMan, I want to be able to use them for the ButtonGeometry parameter.

This parameter has to be equal to (ShrinkTop-1)x(ShrinkTop-1)

So I tried:

*FvwmIconMan: ButtonGeometry $$(($[ShrinkTop]-1))x$$(($[ShrinkTop]-1))

but it doesn’t work so I had to go back to numerical values! If I use $[ShrinkTop]x$[ShrinkTop] it works but the buttons are too big, 1 pixel too big!!!

Any about what’s wrong here???

Best regards, Brice

Parameter expansion as you want it with mathematics, can only be done via PipeReadL

PipeRead 'echo *FvwmIconMan: ButtonGeometry $(($[ShrinkTop]-1))x$(($[ShrinkTop]-1))'

… might do it – play about it with it, as I haven’t tested it.

– Thomas Adam


I got it like that:

Piperead ‘echo *FvwmIconMan: ButtonGeometry $$(($[ShrinkTop]-1))x$$(($[ShrinkTop]-1))’

Thanks Thomas!!!