Musca - Get a List of Windows

Option A

Use the show windows command to list the windows in the current group only. Eg:

$ musca -c "show windows"
0 - xterm
1 - Editing Get a List of Windows - Musca - Gran Paradiso
2 - xterm
3 * xterm
4 - Musca Howto - Gran Paradiso
5 - config.h (~/musca) - GVIM1

The asterisk indicates the focussed window.

Note: When calling show commands in background scripts, it is best to prefix the command with silent to suppress the output also being directed to Musca's notify setting. Eg:

$ musca -c "silent show windows"

Option B

Musca supports a subset of EWMH to allow common panel and pager operations, and wmctrl. If you want windows from all groups, this wmctrl is the only method.

Window groups map to virtual desktops:

$ wmctrl -d
0  * DG: 1920x1200  VP: N/A  WA: N/A  default
1  - DG: 1920x1200  VP: N/A  WA: N/A  mail

Managed windows are supplied and updated as normal:

$ wmctrl -l
0x004003eb  0 vela ROXTerm
0x0160004a  0 vela Musca - Gran Paradiso
0x00400007  0 vela ROXTerm
0x01e00004  0 vela musca.txt + (~/public_html/aerosuidae) - GVIM3
0x01a00004  0 vela config.h (~/musca) - GVIM
0x01c00064  1 vela OpenOffice.org