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

Can i run two X windows at the same time on Linux 

Newsgroups: comp.unix.admin
>Can i run two X window systems simultaneously at the same time on the
>Linux. If yes do tell me.

Yes, XFree86 supports this. My /usr/X11R6/lib/X11/xdm/Xservers file has:

:0 local /usr/X11R6/bin/X :0 vt07 -bpp 8
:1 local /usr/X11R6/bin/X :1 vt08 -bpp 32

Reinier

Can i run two X windows at the same time on Linux 

Yes you can.

$startx
$startx -- :1

On my system I switch between the two X sessions by using CTRL-ALT-F7 and CTRL-ALT-F8.

man xinit

Jim

How to make twm launch an application on startup? 

Newsgroups: comp.os.linux.x
Date: Mon, 20 Jan 2003 23:29:55 GMT
:: I'm trying to figure out how to make twm launch an application (my
:: MAME cabinet front end, 'advmenu') upon starting X.
: Try putting the stuff you want to launch at startup into your .xinitrc
: (somewhere near the bottom of this file)

Unless, you want the twm to control the termination of the session, as will often be expected. So, instead of

twm& exec some_application

perhaps

(sleep 5; some_application & )& exec twm

Wayne Throop