I would like to count the number of active windows open apart from that of the window manager I am using. I am aware that wmctrl can do this, however, when I do the following:
wmctrl -l
on my Ubuntu 14.04 64-bit desktop using unity as the window manager, the output I get is:
0x03c00002 0 stepup XdndCollectionWindowImp
0x03c00005 0 stepup unity-launcher
0x03c00008 0 stepup unity-panel
0x03c0000b 0 stepup unity-dash
0x03c0000c 0 stepup Hud
0x02c0000a 0 stepup Desktop
0x02e000b3 0 stepup How to count the number of active windows open irrespective of window manager? - Unix & Linux Stack Exchange - Mozilla Firefox
0x0340000c 0 stepup Terminal
However, I would want to ignore the windows that unity/gnome/KDE, etc. uses and count just the windows the user has opened on his own. How do I this?