How to get window's name? #866
Answered
by
rockyzhang24
AurevoirXavier
asked this question in
Q&A
-
Some windows don't show a name on the left-top How can I specify it in |
Beta Was this translation helpful? Give feedback.
Answered by
rockyzhang24
Mar 20, 2021
Replies: 1 comment
-
Use yabai query along with Some references that help you learn to use yabai:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AurevoirXavier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 injson
format.jq
can filter and output the fields that you care about.Some references that help you learn to use yabai: