Re: FVWM: FWD: Re: [TAG] determining screen resolution

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Mon, 08 Oct 2001 21:48:06 -0400

Glen Lee Edwards <Glen_at_fcwm.org> writes:
> Is there a way to mathmatically modify these values from within .fvwm2rc?
> If I
> use $[vp.width], the bar extends app 12p beyond the viewing range of my
> screen. I tried
>
> *MyBar2Geometry $[vp.width]-12x115+0-0
> and
> *MyBar2Geometry $[vp.width-12]x115+0-0
>
> but neither worked, instead moving the bar to the top of the screen (it's
> supposed to be on the bottom).

Use PipeRead to do arithmetic:

PipeRead 'echo "*MyBar2Geometry `expr $[vp.width] - 12`x115+0-0"'

(Warning, lightly tested.)

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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 Mon Oct 08 2001 - 20:51:33 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST