xlsclients

List client applications running on an X11 display

brewmacoslinux
Try with needOr install directly
Source

About

List client applications running on a display

Commands

xlsclients

Examples

List all clients connected to the default X display$ xlsclients
List clients on a specific X display with verbose output$ xlsclients -display :0 -l
Show client information with command line arguments$ xlsclients -m 200