WinManager & desktops, Using


Table of Contents

List all windows 
List all windows 
Can i run two X windows at the same time on Linux 
Can i run two X windows at the same time on Linux 
How to make twm launch an application on startup? 

List all windows 

Newsgroups:  comp.os.linux.x
Date:        Sat, 27 Aug 2005 14:10:53 -0400

Is there any command that can list all opened windows on my desktop?

I normally have about 50~100 windows open on my desktop (xterm, emacs, mozilla, etc), (all being well managed), thanks to the fantastic windows-grouping of fluxbox. This is really something I can boast about, but I want to know/show exactly how many they are…

thanks

List all windows 

On Sat, 27 Aug 2005 15:52:36 -0500, Dances With Crows wrote:

> > Is there any command that can list all opened windows on my desktop?
>
> "wmctrl -l" ?

Wmctrl is a command line tool to interact with an EWMH/NetWM compatible X Window Manager (examples include enligthenment, icewm, kwin, metacity, and sawfish).

Hmm, I don't have it and I'm using fluxbox, so that might not be useful.

> xwininfo can give a lot more information,

Ah, yes, the last resort.

xwininfo -root -tree | grep -Ev 'has no name|[[:digit:]]+ child|Parent window id:|^ *$' | sed -r 's/^[ 0-9a-fx]+//; /^"Gecko": ()/d;' | sort | tee /dev/tty | wc -l

I got 71, hehe, not bad. :-)

T