FelixKratz / SketchyBar

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

Event subscription lost after screen lock #623

Closed exic closed 2 months ago

exic commented 2 months ago

I'm using AeroSpace and

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.

exic commented 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.