Table of Contents
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
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