Re: FVWM: Command-line tool for listing windows?

2012-01-31 Thread Thomas Adam
On Tue, Jan 31, 2012 at 04:14:47PM +1100, Kathryn Andersen wrote:
 On Mon, Jan 30, 2012 at 05:49:17PM -0500, Chris Siebenmann wrote:
  | On 30 January 2012 21:28, Chris Siebenmann c...@cs.toronto.edu wrote:
  |  €Does anyone know if there exists a good command line tool for
  |  listing either the window IDs or the window names of all windows
  |  of a specific class (or better yet, set of classes)? Or is this
  |  something that's better done with an fvwm module written in Perl
  |  with fvwm-perllib[*]?
  | 
  | xwininfo
  | xprop
 
   At this point it might be useful to explain my overall motivation: I
  want to put together something that lets me select xterm windows from
  the keyboard based on their name, with name completion. My current plan
  is to use dmenu for the window name completion (and a script around it
  to then act on the window). But for this I need to feed the window names
  into dmenu[*].
 
 I think wmctrl might help.  It doesn't come standard with X but you
 should be able to install it as a separate package.

What's wrong with using xlsclients, which *does* come as standard?

-- Thomas Adam



FVWM: Command-line tool for listing windows?

2012-01-30 Thread Chris Siebenmann
 Does anyone know if there exists a good command line tool for listing
either the window IDs or the window names of all windows of a specific
class (or better yet, set of classes)? Or is this something that's
better done with an fvwm module written in Perl with fvwm-perllib[*]?

 Thanks in advance.

- cks
[*: it's pretty easy to write a module to do this, but I'd prefer to
have a command line tool that I can hook into other scripts; my
shell scripting is better than my Perl.]



Re: FVWM: Command-line tool for listing windows?

2012-01-30 Thread Mag. Dr. Nikolaus Klepp
Am Montag, 30. Januar 2012 schrieb Chris Siebenmann:
  Does anyone know if there exists a good command line tool for listing
 either the window IDs or the window names of all windows of a specific
 class (or better yet, set of classes)? Or is this something that's
 better done with an fvwm module written in Perl with fvwm-perllib[*]?

  Thanks in advance.

   - cks
 [*: it's pretty easy to write a module to do this, but I'd prefer to
 have a command line tool that I can hook into other scripts; my
 shell scripting is better than my Perl.]


You could look at 
xwininfo -root -tree 



-- 

Mag. Dr. Nikolaus Klepp
Einnehmerstraße 14
A-4810 Gmunden
Tel.: +43 650 82 11 724
email: off...@klepp.biz



Re: FVWM: Command-line tool for listing windows?

2012-01-30 Thread Thomas Adam
On 30 January 2012 21:28, Chris Siebenmann c...@cs.toronto.edu wrote:
  Does anyone know if there exists a good command line tool for listing
 either the window IDs or the window names of all windows of a specific
 class (or better yet, set of classes)? Or is this something that's
 better done with an fvwm module written in Perl with fvwm-perllib[*]?

xwininfo
xprop

But why not get FVWM to do it?   No need for a module, just a
conditional command.

All (SomeCondition, ClassName, OtherCondition) Echo $[w.id]: $[w.class]

-- Thomas Adam