FelixKratz / SketchyBar

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

When update_freq is set, items take the same time to appear #315

Closed itaysharir closed 1 year ago

itaysharir commented 1 year ago

When i set update_freq to 10, when i start sketchybar it takes 10 seconds for the item to appear. Is this normal? If it is, how can i fix it?

FelixKratz commented 1 year ago

The item script will be called after 10 seconds for the first routine update.

The command sketchybar --update forces all item scripts to be run at startup in a forced update (e.g. see the default config): https://github.com/FelixKratz/SketchyBar/blob/48709c233c4015f9a593c818a1f5e6ca77f4ec24/sketchybarrc#L98

The command should at no point be run in an item script, as it would cause an infinite loop.