Se o seu window manager
for compatível com EWMH e NetWM , você poderá usar wmctrl
:
$ wmctrl -l
0x01a0000e 0 N/A Oracle VM VirtualBox Manager
0x0120000d 0 comp uxterm
0x01000010 0 comp linux - How to get a list of all windows in Xorg? - Super User - firefox
0x00a00013 0 comp [email protected]