FVWM: Resizing Windows using KEY bindings - or: Why can't fvwm calculate?

From: Marc-Jano Knopp <mjk_at_rbg.informatik.tu-darmstadt.de>
Date: Mon, 3 Dec 2001 13:37:25 +0100

Hi, all!

I'm a keyboard freak and want to MOVE and RESIZE my windows using
appropriate key bindings. Moving windows works (more or less, maybe
I'll mail about it later), but I cannot get resizing windows using
the keyboard to work.

What I used is

  Key j A SCM Function ResizeWinLeftFunc $w

and

  DestroyFunc ResizeWinLeftFunc
  AddToFunc ResizeWinLeftFunc
  + I WindowId $0 Resize $[w.width]-10 keep
  

I'm not that familiar with "programming" in fvwm, but as far
as I can see, fvwm does not evaluate "$[w.width]-10" properly,
when I do

  + I WindowId $0 Echo "WIDTH: "$[w.width]-10
  
instead, I get something like

  WIDTH: 503-10
  
on stdout/stderr. I haven't found anything that seems like
it could calculate expressions. Am I blind? The only way
of "calculation" seems to be function specific, e.g. the
Syntax

  Move w+5 50
  

Who can help?


Best regards

  Marc-Jano
  
P.S.: fvwm2 is not really perfect, but so far the best window
      manager I found - using fvwm/fvwm2 since 1993 or so!
--
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 Dec 03 2001 - 06:58:04 GMT

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