xlsclients

List client applications running on a display


Install
brew install xlsclients