Re: FVWM: Window manager "refit" windows function

2010-02-12 Thread Nathan Hüsken
On 02/12/2010 11:45 AM, Thomas Adam wrote: > On 12 February 2010 10:34, Nathan Hüsken wrote: > >> I am getting there, just a little piece missing. >> For testing, I did: >> AddToFunc Tile >> + I SetEnv cur_x $[w.x] >> + I SetEnv cur_y $[w.y] >> + I SetEnv cur_width $[w.width] >> + I Set

Re: FVWM: Window manager "refit" windows function

2010-02-12 Thread Thomas Adam
On 12 February 2010 10:34, Nathan Hüsken wrote: > I am getting there, just a little piece missing. > For testing, I did: > AddToFunc Tile > +   I SetEnv cur_x $[w.x] > +   I SetEnv cur_y $[w.y] > +   I SetEnv cur_width $[w.width] > +   I SetEnv cur_height $[w.height] > +   I All PipeRead 'echo $[c

Re: FVWM: Window manager "refit" windows function

2010-02-12 Thread Nathan Hüsken
On 02/12/2010 09:51 AM, Thomas Adam wrote: > On 12 February 2010 08:29, Nathan Hüsken wrote: > >> I am sorry if I am bothering or am asking stupid questions, but I really >> can not find it in the fvwm documentation (looking throught the manpages >> and the html documentation). >> I understand

Re: FVWM: Window manager "refit" windows function

2010-02-12 Thread Thomas Adam
On 12 February 2010 08:29, Nathan Hüsken wrote: > I am sorry if I am bothering or am asking stupid questions, but I really > can not find it in the fvwm documentation (looking throught the manpages > and the html documentation). > I understand how PipeRead works (that I found in the manpages), but

Re: FVWM: Window manager "refit" windows function

2010-02-12 Thread Nathan Hüsken
On 02/11/2010 10:47 PM, Thomas Adam wrote: > On Thu, Feb 11, 2010 at 05:52:58PM +0100, Nathan H?sken wrote: > >> On 02/10/2010 07:50 PM, Elliot S wrote: >> >>> You can move the window to its center and then shrink/expand. >>> You can check for overlap by piping to a script. >>> >>> >>>

Re: FVWM: Window manager "refit" windows function

2010-02-11 Thread Thomas Adam
On Thu, Feb 11, 2010 at 05:52:58PM +0100, Nathan H?sken wrote: > On 02/10/2010 07:50 PM, Elliot S wrote: > > You can move the window to its center and then shrink/expand. > > You can check for overlap by piping to a script. > > > > > > Hi, > > With piping to a script you mean using PipeRead? H

Re: FVWM: Window manager "refit" windows function

2010-02-11 Thread Nathan Hüsken
On 02/10/2010 07:50 PM, Elliot S wrote: > You can move the window to its center and then shrink/expand. > You can check for overlap by piping to a script. > > Hi, With piping to a script you mean using PipeRead? How can I inform the script about the windows on the current desktop? Thanks! Nat

Re: FVWM: Window manager "refit" windows function

2010-02-10 Thread Kathryn Andersen
On Wed, Feb 10, 2010 at 10:33:06PM +, Thomas Adam wrote: > On Thu, Feb 11, 2010 at 09:19:48AM +1100, Kathryn Andersen wrote: > > On Tue, Feb 09, 2010 at 12:53:32PM +0100, Nathan H?sken wrote: > > > A function that refits all windows on the screen by making minmal > > > adjustments. > > > Does

Re: FVWM: Window manager "refit" windows function

2010-02-10 Thread Thomas Adam
On Thu, Feb 11, 2010 at 09:19:48AM +1100, Kathryn Andersen wrote: > On Tue, Feb 09, 2010 at 12:53:32PM +0100, Nathan H?sken wrote: > > A function that refits all windows on the screen by making minmal > > adjustments. > > > Lets say I have 3 windows. I put one in top right, on in bottom right > >

Re: FVWM: Window manager "refit" windows function

2010-02-10 Thread Kathryn Andersen
On Tue, Feb 09, 2010 at 12:53:32PM +0100, Nathan H?sken wrote: > A function that refits all windows on the screen by making minmal > adjustments. > Lets say I have 3 windows. I put one in top right, on in bottom right > and one on the left. > I do this roughly with the mouse. > Now if the do not

Re: FVWM: Window manager "refit" windows function

2010-02-10 Thread Nathan Hüsken
On 02/09/2010 07:33 PM, Elliot S wrote: > You can shrink the window and then regrow it. > > AddToFunc Tile > + I Resize 0 0 > + I Maximize grow grow > + I Max2Size $[w.width] $[w.height] $[w.x] $[w.y] > > AddToFunc Max2Size > + I ResizeMove $0p $1p $2p $3p > + I Resize br w-10p

Re: FVWM: Window manager "refit" windows function

2010-02-09 Thread Nathan Hüsken
On 02/09/2010 02:16 PM, Thomas Adam wrote: > On 9 February 2010 11:53, Nathan Hüsken wrote: > >> Hi, >> >> fvwm has many cool windows replacing and resizing functions. But one >> thing I was not able to do so far: >> >> A function that refits all windows on the screen by making minmal >> adjust

Re: FVWM: Window manager "refit" windows function

2010-02-09 Thread Thomas Adam
On 9 February 2010 11:53, Nathan Hüsken wrote: > Hi, > > fvwm has many cool windows replacing and resizing functions. But one > thing I was not able to do so far: > > A function that refits all windows on the screen by making minmal > adjustments. > > What do I mean? > > Lets say I have 3 windows.

FVWM: Window manager "refit" windows function

2010-02-09 Thread Nathan Hüsken
Hi, fvwm has many cool windows replacing and resizing functions. But one thing I was not able to do so far: A function that refits all windows on the screen by making minmal adjustments. What do I mean? Lets say I have 3 windows. I put one in top right, on in bottom right and one on the left. I