The linux commandline tool
wmctrl allows you to list all windows, or all desktops, among other things. In the desktop-listing mode, the current desktop is marked with an asterisk.
I need a tool that can figure out the currently active window's title. Unfortunately,
wmctrl doesn't have a helper that does this - despite it knowing which window is currently active (see
Is there another commandline tool that can give me the window id and/or window title of the current window?