How to get the active pane's ID? #5010
Answered
by
wez
weiying-chen
asked this question in
Q&A
-
What Operating System(s) are you running on?Linux Wayland Which Wayland compositor or X11 Window manager(s) are you using?Wayland/Mutter WezTerm version20240203-110809-5046fc22 Ask your question!I thought $WEZTERM_PANE would get the activate pane (current pane's ID). But it gets the ID of the pane that is running the script (e.g. inside inotifywait). How to get the active (focused) pane's ID? |
Beta Was this translation helpful? Give feedback.
Answered by
wez
Feb 13, 2024
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
weiying-chen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wezterm cli list-clients
(orwezterm cli list-clients --format=json
) will show you the focused pane for each client.