Skip to content

How to get window's name? #866

Discussion options

You must be logged in to vote

Use yabai query along with jq.
E.g., to get the name the currently focused window: yabai -m query --windows --window | jq '.title'.
yabai -m query --windows --window outputs all the fields (information) about the window in json format.
jq can filter and output the fields that you care about.

Some references that help you learn to use yabai:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AurevoirXavier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants