Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically read config file, skipping import step #385

Closed
kristiansordal opened this issue Jan 12, 2024 · 2 comments
Closed

Automatically read config file, skipping import step #385

kristiansordal opened this issue Jan 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@kristiansordal
Copy link

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.

@kristiansordal kristiansordal added the enhancement New feature or request label Jan 12, 2024
@Jean-Tinland
Copy link
Owner

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.

@Jean-Tinland Jean-Tinland added planned New feature or request added to roadmap work-in-progress I'm working on this, stay tuned labels Jan 18, 2025
@Jean-Tinland
Copy link
Owner

Hi there, I just pushed an update removing the import/export system in settings.

External configuration file is automatically loaded on simple-bar startup. This configuration file is directly updated when you make some changes in simple-bar settings.

File is always located in ~/.simplebarrc. It can be a symbolic link.

If you make some manual changes directly in this file, you'll need to refresh simple-bar just after with this command:

osascript -e 'tell application id "tracesOf.Uebersicht" to refresh'

You can also do the same by clicking on simple-bar then by pressing cmd + r.

Anyone reading this, feel free to give me feedback regarding those changes!

@Jean-Tinland Jean-Tinland removed work-in-progress I'm working on this, stay tuned planned New feature or request added to roadmap labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants