Why does my "spaces" query return bsp on type when it is stacked? #1795
-
I was planning to create a simple script that would either:
To create such a script I need to be able to check the type of a space, but it always returns "bsp". What do I need to do for a stack to return correct for The output I get is:
I expected |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because the space itself is using a bsp layout. The two windows are stacked, meaning they share the same node in the bsp-layout. |
Beta Was this translation helpful? Give feedback.
Because the space itself is using a bsp layout. The two windows are stacked, meaning they share the same node in the bsp-layout.
You want to query information about the window (
yabai -m query --windows --window
for the focused window, use a selector to get a different window), and check thestack-index
property. If non-zero, the window is inside a stack, and if zero it is not stacked.