Re: FVWM: Can I match a window by size AND name?

2007-02-21 Thread GoogleGuy
On Sat, 17 Feb 2007 19:07:21 +
Thomas Adam [EMAIL PROTECTED] wrote:

 Well, it depends how you want to measure the size/geometry.  Note that
 such an operation is separate from the resource of a window, depending
 on what it is you're trying to do, and how.  
 
 What you want is something like this:
 
 Pick PipeRead `[[ $[w.resource] == resourcename ]]  [[ $[w.width]
  some_number ]]  [[ $[w.height]  some_numner ]]  echo
 CommandToFVWM`

Thanks for your reply, Thomas, and for a nice example.

I'll work on it, and ask further questions. 

Thanks,
Andrei



FVWM: Can I match a window by size AND name?

2007-02-17 Thread GoogleGuy
Hi All,

I need a condition that can match a window both by its size/geometry
AND a resource name at the same time. Or at least by size/geometry.

After rummaging through the man pages and using Google I can't figure
it out so far. 

Can this be achieved with FVWM?

If yes, any pointers in the right direction would be gladly accepted.

Thanks,
Andrei

-- 
FVWM 2.5.17
Debian Sarge/Unstable



Re: FVWM: Can I match a window by size AND name?

2007-02-17 Thread Thomas Adam
On Sat, Feb 17, 2007 at 07:28:16PM +0200, GoogleGuy wrote:
 Hi All,
 
 I need a condition that can match a window both by its size/geometry
 AND a resource name at the same time. Or at least by size/geometry.

Well, it depends how you want to measure the size/geometry.  Note that
such an operation is separate from the resource of a window, depending
on what it is you're trying to do, and how.  

What you want is something like this:

Pick PipeRead `[[ $[w.resource] == resourcename ]]  [[ $[w.width] 
some_number ]]  [[ $[w.height]  some_numner ]]  echo
CommandToFVWM`

The key here is to look at the variables:

$[w.resource]
$[w.width]
$[w.height]

If you want to do calculate actual geometry strings, parse the output of
xwininfo(1) for instance.

-- Thomas Adam

-- 
Wanting to feel; to know what is real.  Living is a lie. -- Purpoise
Song, by The Monkees.