xlsclients
list client applications running on a display
see also :
X - xwininfo - xprop
Synopsis
xlsclients
[-display displayname] [-a] [-l] [-m maxcmdlen]
add an example, a script, a trick and tips
examples
source
for i in $(
xlsclients -l | grep -B2 "Command: *qiv"
| grep ^Window | awk '{print $2}' | awk
-F: '{print $1}' )
; do
description
Xlsclients
is a utility for listing information about the client
applications running on a display. It may be used to
generate scripts representing a snapshot of the user’s
current session.
options
-display
displayname
This option specifies the X
server to contact.
-a
This option indicates that clients on all screens should
be listed. By default, only those clients on the default
screen are listed.
-l
List in long format, giving the window name, icon name,
and class hints in addition to the machine name and command
string shown in the default format.
-m
maxcmdlen
This option specifies the
maximum number of characters in a command to print out. The
default is 10000.
display
To get the default host, display number, and screen.
environment
see also
X ,
xwininfo , xprop
author
Jim Fulton, MIT
X Consortium