Basic arithmetic calculation capability in config files

Do you think this feature should be in the next fvwm release

  • Yes
  • No
  • Doesn’t matter

0 voters

It will make it easier to create more flexible configurations.
Consider the following desktop

+------------------------------------------------------------------+
|                           panel 1                                |
+---------+--------------------------------------------------------+
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
| panel 2 |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
|         |                                                        |
+---------+--------------------------------------------------------+

When change the height of panel 1, we also have to manually calculate and edit the new height of panel 2. If some basic arithmetic calculations are supported in config files, one can easily set the height of panel 2 to

$[VP.HEIGHT] - $[HEIGHT_OF_PANEL_1]

This kind of situation occurs very offen. At least add (+), minus (-), multiply (*), divide (/) should be supported.

I agree – it would be nice if variable arithemetic could happen without
having to shell-out each time to do it. But it is still possible to do
via PipeRead, etc.

– Thomas Adam