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

feat: add a way to dinamically only change GTK CSS configuration. #1291

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

Conversation

nwnbark
Copy link

@nwnbark nwnbark commented Mar 4, 2025

Description

This PR adds a flag to only Reload the GTK CSS code:

eww reload --onlycss

The --onlycss flag will skip the parsing of any eww or yuck config, and only reload the scss config (It was practically already done).

Also adding a feature to not monitor any file which ends their filename with "__", to allow an easy way to "enable" this feature.

Additional Notes

Basically, in case a file of '.scss' or '.css' is not on the config folder (symlinked), or their filename ends with "__", they are not going to be watched or monitored for any changes, allowing for scripting, mostly done with the purpose of using pywal and i3 without the hassle of reserving areas so the layout doesn't flick on eww recreating windows, wasting cpu on reacreating and recalling all the scripts, etc.
I think a better method could be thought (instead of using the "__" at the end of filenames to ignore them), so i will gladly modify it if another method is more convenient or intuitive.

Checklist

Please make sure you can check all the boxes that apply to this PR.

  • I added my changes to CHANGELOG.md, if appropriate.
  • The documentation in the docs/content/main directory has been adjusted to reflect my changes.
  • I used cargo fmt to automatically format all code before committing

nwnbark added 3 commits March 3, 2025 23:28
…h "__"

I thought for a method of ignoring changes from certain config files that doesnt involve symlinks, like changing a lot of strings on the filename, adding another config file, or straight up only reloading css if only .(s)css config files changed (which may end up confusing as there is not a way to dinamically change window size if some css code changes it, so i think reloading all unless the user specifies it is the way to go).
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.

1 participant