FelixKratz / SketchyBar

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

bar hidden = off disables important event #550

Closed aspauldingcode closed 4 months ago

aspauldingcode commented 4 months ago

Hi, I have an event to detect with sketchybar when app changes focus. This triggers a script which detects if I am in x11.bin or not. This is the only way I can keep skhd enabled and still drag around i3 windows, and then go back to macos apps and use alt to drag around yabai windows.

However, when I toggle sketchybar off, I didn't expect it to no longer use the event. This is a problem. I need that script to detect if I switch or not running all the time. Is there a better solution? Or maybe a way to keep an event running even if sketchybar is hidden?

FelixKratz commented 4 months ago

Did you set updates=when_shown for the item receiving the event (or as a default)? If so setting it to updates=on for this item might help you.

aspauldingcode commented 4 months ago

Oh, I did not see that. thanks, works!