SYNOPSIS tmux [-28lquvVC] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [command [flags]]
PASS
[flags] command This indicates one of the set of commands used to control tmux, as described in the following sections. If no commands are specified, it is assumed that a new session command is used.
You can find a complete list of tmux commands in the manual (the last two arguments), but now you are interested in list-windows.
tmux list-windows 0: zsh [156x40] [layout aebd,156x40,0,0,0] @0 1: mc [156x40] [layout aebe,156x40,0,0,1] @1 (active)
As you can see the active window is marked "(active)". Is this what you were looking for?
Alex kroll
source share