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

Add live reloading of configuration file #684

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

davfsa
Copy link
Contributor

@davfsa davfsa commented Dec 31, 2024

This also removes the need for a file with all the available configuration and a shadow configuration file.

Additionally, added several improvements:

  1. Reduce I/O on initial configuration loading by only reading file once, instead of once per option (scary! Hyprpanel has a lot of options)
  2. Remove unnecesary back and forth events when editing configuration

There were also old references to a "cache file", which is no longer a thing since the Astal migration, so renamed those too


Closes #787 - The slowdown is caused by the massive I/O, which this pr fixed. There will still be a delay because they are not updated in bulk, but will be wayyyyy less

This also removes the need for a file with all the available
configuration and a shadow configuration file.

Additionally, added several improvements:
1. Reduce I/O on initial configuration loading by only reading file once
2. Remove unnecesary back and forth events when editing configuration
@davfsa
Copy link
Contributor Author

davfsa commented Dec 31, 2024

Kind of closes #381, as it is now way nicer to edit these types of configuration, but im not sure :)

@Jas-SinghFSU
Copy link
Owner

Nice! I'll review this over the weekend when I get more time.

@davfsa davfsa closed this Feb 20, 2025
@davfsa davfsa reopened this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hyprpanel freezing for a long time after changing themes from CLI
2 participants