Closed exic closed 2 months ago
I had used sketchybar --add space ...
instead of --add item
, obviously space
widget has special implications which aren't correct for AeroSpace, so now it's resolved 🙂
Since it took me a while to figure out while writing this issue, I figured it might still be worth to post.
I'm using AeroSpace and
sketchybar --trigger aerospace_workspace_change PREV_WORKSPACE=$AEROSPACE_PREV_WORKSPACE FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE
when changing workspaces (similar to https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar)sketchybar --query events
)This works fine but stops working after screen was locked. Looks like the subscription gets lost by screen locking? When I restart sketchybar, it works like before. I think this issue arose after updating to Sequoia.
I wasn't sure if it's a AeroSpace or SketchyBar issue, but since restarting the bar resolves it, I assume the trigger setup is ok.
How can I debug further? sketchybar --query space.1 (e.g.) shows no subscriptions, right? Also, I tried re-adding the subscription, but that didn't change anything:
for i in {1..16}; do sketchybar --subscribe space.$i aerospace_workspace_change; done
I've added logging to the aerospace.sh-Plugin script, which shows me that it still receives
space_change
events.