Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Automatically read config file, skipping import step #385

Open kristiansordal opened 10 months ago

kristiansordal commented 10 months ago

Would it be possible to have Simple Bar automatically read .simplebarrc when it is refreshed?

I have a script which toggles a noBarBg between true and false whenever i restart Yabai (i do this depening on wether or not I have my machine in a dock or not, changing the yabai window borders etc.) I have achieved restarting of simple-bar, but it wont read the new config file unless I manually import it in the settings. Would be nice if there was a way to automate this process.

Jean-Tinland commented 10 months ago

I agree, it would be far more convenient! I will try to enable this behavior with a new setting allowing use to choose the external config file strategy: in sync or manual.

I'll let you know if I encounter any problem doing so.