On 18 Dec 2001 07:50:15 +0100, Uwe Pross wrote:
>
> I would like to set/calculate the environment variables in the init
> section depending on the actual screen resolution:
>
> AddToFunc InitFunction
> + I SetEnv TASKBAR_HEIGHT 27
> + I SetEnv BUTTONBAR_HEIGHT 73
> + I SetEnv SPACE_BETWEEN `$[vp.height] - $[TASKBAR_HEIGHT] -
> $[BUTTONBAR_HEIGHT]`
>
> I know the last line is not possible, but maybe someone got an idea to
> obtain a similar behaviour.
AddToFunc StartFunction
+ I SetEnv TASKBAR_HEIGHT 27
+ I SetEnv BUTTONBAR_HEIGHT 73
+ I PipeRead `printf "SetEnv SPACE_BETWEEN "; expr $[vp.height] - $[TASKBAR_HEIGHT] - $[BUTTONBAR_HEIGHT]`
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Dec 18 2001 - 14:00:46 GMT