FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
6.68k stars 97 forks source link

querying a space doesn't provide popup info? #371

Closed dsanson closed 1 year ago

dsanson commented 1 year ago

With ordinary items, I can use sketchybar --query <item> | jq '.popup.drawing' to determine whether or not the popup is currently activated. But it appears that spaces don't return any popup information when queried, even though they can have popup windows associated with them.

FelixKratz commented 1 year ago

Popup info is only supplied if an item is contained in the popup, this holds for all items not only spaces: https://github.com/FelixKratz/SketchyBar/blob/7b0f41bddf6dd3c65d3310177b0dcc47c0d4bb59/src/bar_item.c#L891-L895